Summary
Removes trailing blanks from a string.
Syntax
local trimmedString = rtrim(string)Parameters
String : text string.
Returns
String : string with the trailing spaces removed.
Description
Removes blank and control characters (such as line feed) from the end of a string.
Examples
local paddedString = ' letters '
print('[' .. paddedString .. ']')
print('[' .. rtrim( paddedString ) .. ']')
[ letters ]
[ letters]
See Also