Title case a string containing one or more last names while handling names with apostrophes
I want to standardize a user-supplied string. I’d like the first letter to be capitalized for the name and if they have entered two last names, then capitalize the first and second names. For example, if someone enters: