Trims spaces off the given string.

Syntax

Smartsite SXML CopyCode image Copy Code
string string.trim(string s)
string string.trim(string s, string chars)

Parameters

Name Data Type Description
s String The input string.
chars String The characters to remove.

Return Value

Data Type Description
String Input string without leading and trailing white-space characters.

Expand image Examples

SXML