For your specific problem, you can use ‘arrcat()’ function.
In the ‘C:\Program Files (x86)\AnyBody Technology\AnyBody.5.1\Documentation\AnyScriptReference\demo\ClassExamples’ folder,
there is ‘AnyFunInit.any’ file which contains the example of this arrcat() function.
As you can see the first attached capture image, there is the ‘Function Classes’ chapter in the reference manual.
Here you can find some necessary information.
As in the second attached capture image, in an Editor Window of AnyBody Modeling System,
if you can click the ‘Functions’ tab at left side,
then you can see the list of the global function names that you can use in AnyScript.
For me, I prefer to this way.