def stripends(word):
"""Strip punctuation and symbols from the ends of a string."""
while word and unicodedata.category(word[0])[0] in "PS":
def stripends(word):
"""Strip punctuation and symbols from the ends of a string."""
while word and unicodedata.category(word[0])[0] in "PS":