def clean(word: str): a = len(word) while True: word = word.strip("()[]{}!?.,<>:;-_`’‘") if a == len(word): break a = len(word) return word