The are a variety of algorithms out there to quantify the nearest of one string to another, e.g.
https://pypi.python.org/pypi/editdistance