Here is my very simplified solution. I just assumed that the last space in a string is the delimiter. Everything before is the first name and everything after is the last name.
However, I admit this is not a universally valid rule. If you have more complex definitions of first names and last names, you may find useful also split function. For instance: