add string hashing function and tests