Funtion rtrim()
removes the spaces at the end of a string and returns the new string.
Arguments:
- String <string | text>
Returns:
- String <string>
Common Usage
Example: Remove the spaces at the end of string "abc "
return rtrim("abc ") + "_"
abc_