remove dupe characters