The trimRight() method returns a string stripped of whitespace from the right end of the string.
This method has the form:
Note: This method does not change the value of the string itself.
The following example shows the basic use of this method.
This produces the following result:
This form was added in version: 1.8.1