title: String comparisons in selenium using xpath fails even though both strings are exactly same
body: <p>I am using key word driven and data driven framework.
  Expected string is coming from excel sheet and Actual from webpage
  even though both variable print exactly same strings  still the Test script fails.
  It does "PASS" for strings with no space like "<strong>Resign</strong>" but "FAIL" for string with space like "<strong>Property Search</strong>"
  below is the result which prints PASS till "Resign" after that it fails
  ignore the numbers its for debugging. 
  I also included xpath used in result.</p>
  
  <p><strong>Result generated</strong><br>
  By.xpath: html/body/div[2]/div/div[2]/ul/li[1]/ul/li[1]<br>
  Tool tip text present :- Revals<br>
  Revals<br>
  1
  By.xpath: html/body/div[2]/div/div[2]/ul/li[1]/ul/li[2]/a[contains(text(),'Managed Client Accounts')]<br>
  Tool tip text present :- Managed Client Accounts<br>
  Managed Client Accounts<br>
  1<br>
  By.xpath: html/body/div[2]/div/div[2]/ul/li[1]/ul/li[3]<br>
  Tool tip text present :- Resigns<br>
  Resigns<br>
  1<br>
  By.xpath: .//<em>[@id='dashboard-dropdown']/li[4]/a<br>
  Tool tip text present :- Outstanding AR<br>
  Outstanding AR<br>
  4<br>
  By.xpath: .//</em>[@id='menuCreateDashboard']<br>
  Tool tip text present :- Manage Dashboard<br>
  Manage Dashboard<br>
  4<br>
  By.xpath: html/body/div[2]/div/div[2]/ul/li[2]/a<br>
  Tool tip text present :- Property Search<br>
  Property Search<br>
  4<br>
  By.xpath: html/body/div[2]/div/div[2]/ul/li[3]/a<br>
  Tool tip text present :- Tax Resource Database<br>
  Tax Resource Database<br>
  4<br>
  By.xpath: html/body/div[2]/div/div[2]/ul/li[4]/a[contains(text(),'Quick Links')]<br>
  Tool tip text present :- Quick Links<br>
  Quick Links<br>
  4<br>
  Here is the code:  </p>
  
  <pre><code>public String verify_Text(String locatorType, String value, String data){
         try
    {
       By locator;
       locator = locatorValue(locatorType, value);
       System.out.println(locator);
       WebElement element = driver.findElement(locator);
  
  
       //WebElement element = driver.findElement(By.cssSelector("#header&gt;h1 a"));
      // Get tooltip text
      String toolTipText = element.getText();
      System.out.println("Tool tip text present :- " + toolTipText);
      System.out.println(data);
  
      // Compare toll tip text
  
           if(toolTipText.contentEquals(data))
             {
                 System.out.println("1");
                return PASS;
  
             }
  
  
  
    }
    catch(Exception e)
    {
       LOG.error(Executor.currentSheet + ":" + e);
       getScreenshot("verify_Link", data);
       System.out.println("3");
       return FAIL;
    }
    getScreenshot("verify_Link", data);
    System.out.println("4");
    return FAIL;
  </code></pre>
  
  <p>}</p>