Do not use '==' to compare String objects. Use the equals() method instead.