Correct error in strings with an apostrophe