remove duplicate characters