Description
Returns a trimmed copy of the string passed as parameter with the leading and trailing whitespaces removed.
Parameters
Return Type
String
Example
string original = " foobar "; string trimmed = trim(original); print(">>" + original + "<<"); // will print ">> foobar <<" print(">>" + trimmed + "<<"); // will print ">>foobar<<"
This also works if the string passed in as parameter only has leading or trailing whitespaces. If the string has no leading or trailing whitespaces, a copy of the original string will be returned.
See also
We've encountered an issue exporting this macro. Please try exporting this page again later.