Fix EOF in string