string.rtrim()
Removes spaces from the end of a string.
string.rtrim( )
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.RTrim() & "-");