Change string hash function