remove trailing apostrophe