function capitalize(word) { return word.charAt(0).toUpperCase() + word.toLocaleLowerCase().substring(1) } capitalize("bob");