implement _clean_name func