You'd have a hard time reaching the maximum length of the strings allowed by wow's lua interpretor, so I doubt it could be the problem. However, getn() behaves a bit strangely, you should read about it on lua.org's manual.
Also, the best way to iterate in a table is often to use the "for" constructor, with this kind of syntax:
Code:
for key,value in pairs(mytable) do
Something(key, value)
end
If you don't care about the keys but only about the values stored, you can do:
Code:
for value in mytable do
Something(value)
end
The problem is that if your table looks like...
Code:
{
[1] = "a",
[2] = "b",
[3] = "c",
[4] = "d",
}
... then the output of a concatenation run via "for ... in ... do" will most likely be something like "badc" instead of "abcd". If the order of the keys is important (if you want to concatenate 1, then 2, then 3, then 4), then you can check
this wowwiki tutorial.
I hope this helps a bit.