title: Android String Not Equal
body: <p>I am brand new to Java and Android so I am sure this will be an easy question/answer. I know that to find out if a string is equal to another string you use the equal function. In my situation, I am scanning a QR Code where the result of the scan is Similar to "EMPLOYEE~~John Smith~~DIVISION~~Maintenance". I need to know how to do the following:</p>
  
  <pre><code>String contents = intent.getStringExtra("SCAN_RESULT");
  // I know that "contents" contains the string " EMPLOYEE~~John Smith~~DIVISION~~Maintenance"
  
  String[] myJunk = contents.split("~~");
  // This should split everything up into an array named myJunk (right)?
  
  String val1 = myJunk[0];
  // Now val1 Should be equal to "EMPLOYEE"
  
  if (myJunk[0].equals(val1)){
      // Do Something
  }
  </code></pre>
  
  <p>In the example Java Code, myJunk[0] never equals val1. What am I doing wrong?</p>