add String function to add slash for single quote