Set the field value to "ABCSession 2DEF" and you'll see why the correct method to use is String.equals().
String.equals()