remove duplicated new lines