Remove an unexpected single quote causing syntax error