This Python article uses the strip, lstrip and rstrip methods. It handles whitespace and other character types. ["","python~","DPython ","K2..twst.y.erryzbc`CCCST~~}T~~YF6A989898F,CCP6A94FsBCEP966565FVCCCP6474746946946F8