function capitalizeName(name) {
let nameObject = convertNameToObject(name);
let firstName = nameObject.firstName;
let lastName = nameObject.lastName;
return firstName[0].toUpperCase() + firstName.substring(1, firstName.length).toLowerCase() + " " + lastName[0].toUpperCase() + lastName.substring(1, lastName.length).toLowerCase()