Remove excess linebreaks