remove duplicate chars