working solution!  Huzzah!
Map input describes not the size, but the largest valid indices
changed instruction length calculation to just use String.length