The chop() function removes whitespaces or other predefined characters from the right end of a string.
This function is an alias of: rtrim().