Fix startswith apostrophe bug