The function applies a rule that takes the first letter of each word and converts it to uppercase.
