Do not use == and != tp compare objects*. You should use the equals method instead.

string.equals(string);
! string.equals(string);

*That is true the majority of the time but there will be...