hashes a string a s a key and int as its value