text = " a string of some sort, with space at either end " text = text.strip()