Fix string hashing