reference character as numeric index in string fix (v2)

not sure why #23 was failing. the code is fine.  i'm guessing the whole branch is just out of date.

here are the updates with tests passing