uint Hash(string s) { uint hash = 0; foreach (char c in s) { hash = hash * 95 + (uint) c - 32; } return hash; }