Can anybody tell me what's wrong with my code? Everythings seems to be fine, program displays the longest string or many of them, but it failes last two conditions.