remove excess newline