String comparison should be done with .equals() not ==.