Remove trailing spaces from a string and return the resulting string.
RTrim[$] ( stringExpr )
stringExpr
Any String expression.
RTrim returns a Variant of DataType 8 (String), and RTrim$ returns a String. RTrim returns the trimmed version of stringExpr, but does not modify the contents of stringExpr itself.