### Strip Methods

Python strings have the strip(), lstrip(), rstrip() methods for removing any character from both ends of a string. If the characters to be removed are not specified then white-space will be removed

strip() #removes from both ends

spacious = "   xyz   "
print spacious.rstrip()