>>> ' hello world! '.strip() #remove both 'hello world!' >>> ' hello world!'.lstrip() #remove leading whitespace 'hello world!'