Removes the trailing white space and line terminator characters from a string.
A legacy feature for browser compatibility. Use trimEnd instead
trimEnd
Removes the trailing white space and line terminator characters from a string.