changed str_similarity to compary on bytes instead on bits