remove duplicated chars