Don't use the comparison operator, '==', to determine the equality of String objects. Use the equals method, e.g.:

if ( thisString.equals( thatString ) )