Removing other characters

To remove other characters than the default ones, you will have to use the second parameter of the rtrim function. An example of how to remove the "abc" letters from the end of the string is included below: