how to trim spaces in python string