Using a library like parse-full-name would usually get you a better result than using a simple split on strings.
The string may have titles inside or other inconsistencies that a library would hopefully parse better.