remove empty line from EOF