This function can be used to remove all white-space characters from the end of a string. Whitespace characters include spaces, tabs, new-line characters etc.
This function does not generate a change.
str.trim_right()
None
Returns a new string with whitespace characters removed from the end of the string.
Example using trim_right():
' Hello World!! '.trim_right();
Return value in JSON format
" Hello World!!"