add a new hash function for strings