title: Compare two strings in selenium
body: <p>I need to take value from row from page</p>
  
  <p>my code is</p>
  
  <pre><code>String bname1 = selenium.getText("//table[@id='bank']/tbody/tr[3]/td[2]");
  assertEquals(bname1,"HDFC");
  if(bname1=="HDFC") {
      System.out.println("Bank name is:"+bname1);
  } else {
      System.out.println("Bank name not found");
  }
  System.out.println(bname1);
  </code></pre>
  
  <p>Result:
  Bank name not found
  HDFC</p>
  
  <p>My bank name is "VIJAYA"
  But when i compare to "bname1" and "VIJAYA",RESULT will be negative?
  How can i compaire these strings
  pls help me...</p>