So, in IDE it works just fine and returns the longest strings, but for some reason when i try to validate it fails. Can someone let me know what i am missing here? Many thanks