title: Android number comparison problem
body: <p>I have a number (123456) converted to a hash key and stored in SharedPrefs using:</p>
  
  <pre><code>String correctMd5 = passwdfile.getString(PhoneFinder.PASSWORD_PREF_KEY, null);
  </code></pre>
  
  <p>I then retreive the number from a string:</p>
  
  <pre><code>String[] tokens = msg.getMessageBody().split(":");
  String md5hash = PhoneFinder.getMd5Hash(tokens[1]);
  </code></pre>
  
  <p>and compare the two:</p>
  
  <pre><code>if (correctMd5 == md5hash) {
  Toast.makeText(context, "Hash OK: " + md5hash, Toast.LENGTH_SHORT).show();
  }
  </code></pre>
  
  <p>However, this check does not complete succesfully.</p>
  
  <p>If I convert to strings and display them, the hashes are the same, however if I convert to bytes the 4 right most bytes are different. I assume some special character is hidden in there somewhere, how do I check and kill it?</p>