Send in stringified keys. Conditionally convert chars to ints.