remove duplicated new line