Fix fname and lname space input. Add a global sanitizer function.

Fix fname and lname space input. Add a global sanitizer function.