Edit distance: Ignore start/end : <p>I am looking for an algorithm that does edit distance, but which will ignore start+end in the one string and white space:</p>

<pre><code>edit("four","foor") = 1
edit("four","noise fo or blur") = 1
</code></pre>

<p>Is there an existing algorithm for that? Maybe even a Perl or a Python Library?</p>
