Trimmed some recursion in string distance matching, about a 2x speedup (between 13x and 1x).