Quelle che confronti sono due stringhe?
Prova ad usare il metodo String.equals(String)