The function replaces each letter in the input word with the corresponding letter in the output word, except for the first letter which is always capitalized.

