Documentation

How to remove spaces to the left and right of a text

4WS.Platform provides a method to remove spaces to the left and right of a string:

trim(textToTrim);

this function will return the trimmed text;

 

Example:

trim(" abc ");

will return “abc” (without spaces on the left and right).