Fixed py3 issue with string strip