Calculate the similarity of two strings
