seems right, but still wrong for searching of multilevel similar strings