remove newline at file end