title: How can I measure the similarity between 2 strings?
body: <p>Given two strings <code>text1</code> and <code>text2</code>:</p>
  <pre><code>public SOMEUSABLERETURNTYPE Compare(string text1, string text2)
  {
       // DO SOMETHING HERE TO COMPARE
  }
  </code></pre>
  <p>Examples:</p>
  <ol>
  <li><p>First String: StackOverflow</p>
  <p>Second String: StaqOverflow</p>
  <p>Return: Similarity is 91%</p>
  <p>The return can be in % or something like that.</p>
  </li>
  <li><p>First String: The simple text test</p>
  <p>Second String: The complex text test</p>
  <p>Return: The values can be considered equal</p>
  </li>
  </ol>
  <p>Any ideas? What is the best way to do this?</p>