string.trim()
Removes leading and trailing spaces from a string.
string.trim( )
Returns: String
This function does not take any arguments.
Examples
// create variable with a string of text that has leading and trailing spaces
str = " I Love Lucee! ";
// output variable
writeDump("-" & str & "-");
// output variable without leading spaces
writeDump("-" & str.Trim() & "-");