Converts a triple-quoted string to a single-quoted string.