How to Trim Strings in Python?