Remove duplicates and remove non-alphanumeric characters from username