Create Hash_offset

Ruby 1.9 makes this easier.  value.chars.first can simply become value[0] - similar to Python.