C string hash test