lua string manipulation code example
Example 1: Lua string
-- Strings are immutable. Immutable simply means unmodifiable or unchangeable.
a = 'this is a string'
Example 2: lua string length
-- One can get the length of a string by using the # (length) operator.
-- The metamethod for this operator is __len.
local str = "Hello world!";
print(#str); -- 5
Example 3: lua table of all characters
for i=32, 256 do
chartable[i] = utf8.char(i)
end