amatch function

Approximate string matching