remove the extra ending single quote