Returns a new string equivalent to this string but with the whitespace removed from the end.
Use string.trimEnd instead.
string.trimEnd
Returns a new string equivalent to this string but with the whitespace removed from the end.