<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unapostrophe(text):
 """Strip apostrophe and 's' from the end of a string."""

    text = re.sub(r'[%s]s?$' % ''.join(APOSTROPHES), '', text)
    return text