Style note: by having constants for the keys we use, aside from making reusability of those constants easier, we could write unit tests to check on the value of those constants, being what we expect them to be.  So if anyone added a character by mistake, our tests would let us know.