you can trim / strip / remove spaces or set of characters from given string:
from left side : using lstrip()
from right side : using rstrip()
from both side using: strip() function
Visit our website www.metazonetrainings.com for best experience.
You can also join us on Facebook: / metazoneinfotech