delete unneccessary newline