Update reader to work with Lua's string indexing