Remove newline; add newline to end of file