string.strip() method
.strip([chars])
>>> ' spacious '.strip() 'spacious'
Return a copy of the string with the leading and trailing characters removed.
Clickable & Draggable!