The function does not handle words with multiple capital letters correctly. It only considers the first letter of each word, regardless of whether it is capitalized or not.
