fixing ex_6_1 to handle quoted strings