functions to compare strings and return distances