You can use a similar pattern as above to BreakIntoChunks and then use a listref to build the return-delimited list of values. I've added an MCStringAppendSubstring to libfoundation that should make things easier :)