fixed type of len in str_similarity