Naive implementation for string keys.