Find the closest match for a string from an array of matches, using string distance.