Methods for computing the similarity of strings.