Add string distance calculation.