I am looking for something like TRIM() in python, but .strip() doesn't accomplish this. Here's an example:
>>> s.strip()
'Elvis Presley made his film debut in this tale of three brothers who, 
 while serving in the Confederate Army, steal a Union Army payroll. \xc2\xa0'
>>> s2.strip()
'Elvis Presley made his film debut in this tale of three brothers who, 
 while serving in the Confederate Army, steal a Union Army payroll.'
>>> s.strip()==s2.strip()
False
How would I accomplish the above -- to trim all whitespace characters at the edges of text -- where I could get s.trim() == s2.trim() (other than just doing a hackish s.strip('\xc2\xa0').strip()?
 
     
    