add memory allocation for the print out string|

Now `testNLP` can run