I can't pass the last condition. Could you give me a hint? I have tested my code with a file that contains: tar rat rat tar tart a a tot tot tot ab ba ab c c d d and the output was this: tar rat a a tot tot ab ba c c d d I think I am missing something.