trim() is used to remove leading and trailing spaces from a STRING variable. Its effect is the same as of the trim() built-in function. The method does not need any arguments.
LET string_value = " Some STRING variable text "
CALL string_value.Trim()
The STRING variable, string_value, will get the value "Some STRING variable text" after trim() is applied.
If the string is NULL, the method returns NULL