removing end of file additional newlines