refactored clean_username method