Split Full NamesplitFullName(name) turns a full name into [first, last]. It trims extra spaces, keeps particles like van, de, von, da, del, and la with the…