Remove uneeded newlines