title: If then else logic not picking up results from String targetID = ((Node) targetId.item(0)).getNodeValue();
body: <p>I'm using the results from <code>String targetID = ((Node) targetId.item(0)).getNodeValue()</code> in some if logic: <code>if (targetID == "OK")</code> and <code>else if (targetID == "UNKNOWN_USER")</code>, but both comparisons fail. I print out <code>targetID</code> and it displays correctly and displays as <code>java.lang.String</code>, so what am I missing here?</p>