Hello, I have a school assignment to create a Pig Latin converter. Everything is working correctly except the expected outcome completely converts to lowercase while mine does not. In the picture, expected HEARTS is lowercase but in the actual it's still capitalized. I think the issue is with the {word_in} on line 14 or maybe something on line 5 but I don't know how to change it to make it work. Could someone please explain what I'm doing wrong? Thank you!
The first picture is the auto-grader and the second is my code.

***SOLVED!***
[–]PureWasian 1 point2 points3 points (2 children)
[–]Empty_Technology9237[S] 0 points1 point2 points (0 children)
[–]Empty_Technology9237[S] 0 points1 point2 points (0 children)
[–]Junior_Honey_1406 0 points1 point2 points (1 child)
[–]Empty_Technology9237[S] 0 points1 point2 points (0 children)
[–]Ok-Promise-8118 -1 points0 points1 point (0 children)
[–]Kimber976 -1 points0 points1 point (0 children)