convert different types of name format into a standard format