AttributeError: 'unicode' object has no attribute 'trim'