> if T == "string" then return string.sub(A,1) Despite the way it looks, string.sub(A,1) does not produce a copy of the string A; there are no strings duplicates in Lua. The only values that can be copied are tables. --lhf