how to remove first space from string in python without strip function code example Example: python trim whitespace from end of string >>> " xyz ".rstrip() ' xyz'