I have below string
a = " Get a Pen"
Code:
if a.lower().strip() == "get a pen"
print "removed white spaces"
need help to achieve remove all spaces in the string
if a.lower.().strip() =="getapen" # which is the easiest way remove all spaces
print "remove all spaces in the string"