Fix bugs when handling string keys
Merge pull request #9 from ianejames/string_keys

Fix bugs when handling string keys