strLib.setNullTerminator
The system function strLib.setNullTerminator changes all trailing spaces in a string to nulls. You can use strLib.setNullTerminator to convert an item before passing it to a C or C++ program that expects a null-terminated string as an argument.