Fixed a bug in texthelper.lua

The correct name for the function is table.insert. Tested it locally (though, not extensively) and it appears to work.