Fixing a broken string due to apostrophes