Better whitespace handling and preference of initial order

This pull request fixes cases where there were multiple spaces in the name, or if the name was only whitespace itself. It also prefers the first and last initial rather than the first two initials. It still returns only the first initial if only one initial was found.