Correctly parse single-quoted strings