Trim Function
The Trim function returns a copy of a string with all leading and trailing spaces removed.
Syntax
Trim(value)
The Trim function returns a copy of a string with all leading and trailing spaces removed.
Arguments
value
String - The string to be trimmed.
Remarks
- To trim all possible whitespace characters, use the TrimWhitespace function.
Example:
Trim(" this text starts with a space"); // returns "this text starts with a space"