Receiving an error hint in counting total syllables but I believe I satisfied the requirement

As you can see from my code it first converts the text to lowercase, then strips any leading or trailing spaces. Then it creates a list of all of the words and removes any characters that are not alpha. As you can see total is set to 0 and then total is increased by the number of syllables in each word by running the function count_syllables_in_word(cleaned_word). Finally, my function returns total which is the total number of syllables in the text, but I keep getting the same Hint Error that the function should return the sum of all of the syllables in the text. Which I believe I have done.
Please help. This is from Course: Intro to computer science - Python, Unit 5: Automating tasks with lists, Lession 3: String manipulation, Challenge: Reading level Step 3.
Log ind for at efterlade en kommentar.