The problem with treating a string as an array of characters is that characters do not have a uniform size. It is more accurate to treat Lua strings as arrays of bytes. Tony. -- f.anthony.n.finch <dot@dotat.at> http://dotat.at/