Finds the distance between two strings in a given list of strings.