Normalize patient names before saving to the database

Normalize patient names before saving to the database as follows:
* Rmove all extra whitespace
* Capitalize the first letter of each word in the name (lowercase the rest of each word)
* Undefined names are not changed (for form fields)