The function takes the first letter of each word and converts it to uppercase.
