check for EOF while parsing quoted strings