remove uneeded newlines.