Actually, can you change ```current[pos] as char``` to ```current.char_at(pos)```?