drop the white space at end of string code example Example: python trim whitespace from end of string >>> " xyz ".rstrip() ' xyz'