Trim

The Trim function returns a string with white space removed from ends.

Syntax :

Trim(string)
Parameters Description
string Required. A string expression.

Example :

s = Trim(" Test ")

Result :

s="Test"