title: Compare string for italic and bold character
body: <p>I am comparing two string using the <strong>equals()</strong> method:</p>
  
  <pre><code>   if(String1.equals(String2))
     {
       String match="Text Match"
     }
  </code></pre>
  
  <p>With this way the equals method compares strings which include spaces.</p>
  
  <p>But here <strong>String1</strong> and <strong>String2</strong> contain italic and bold character.</p>
  
  <p>So what should i use so that it also compares for italic and bold characters.</p>