linear probing for varchar elements