Handle true eof in string