Maybe you can help me? If i copy this code into a new Window in IntelliJ, the order of the entries is mixed up and starts with "snowball". I guess this is the reason why i dont pass the last condition. This is the Output: Snowball - SNOWBALL Boss - BOSS Mailo - MAILO Missy - MISSY Simba - SIMBA Max - MAX Smokey - SMOKEY Tiger - TIGER Marmalade - MARMALADE Oscar - OSCAR