Remove unneeded newlines