string.Implode issues?

Hey, so I went to write a simple function that automatically adds "
" to a string if it gets too long.

This is what it like:


local desctbl = string.ToTable("This is a test")
	for i = 1,table.Count(desctbl) do
		if i == 35 or i == 70 then
			table.insert(desctbl,i,"
")
		end
	end
local newstring = string.Implode(desctbl)

But it gives me this error:



[ERROR] addons/test/lua/autorun/client/test.lua:447: bad argument #1 to 'Implode' (table expected, got nil)

Note that this works:


local desctbl = string.ToTable("This is a test")
	for i = 1,table.Count(desctbl) do
		if i == 35 or i == 70 then
			table.insert(desctbl,i,"
")
		end
	end
PrintTable(desctbl)

Is it a problem with the function?

Never mind, missed an argument.