Remove unnecessary newline(s)