`rstrip` removes any matched characters from the end of the string until an unmatched character is found