Hello, When you compare two objects with ==, you compare not the content of the objects, but objects themself. You can think of it as comparing two pointers to the memory. Even if two strings have the same text, they are still different objects and have different pointers and == with give false. You should use: if (instrument.toString().equals("EUR/GBP"))