Hi Jack,
Its hard to answer your question without a great deal of specifics. I will try to answer in general. There are two things you want to watch out for when designing an interface of this sort. First, you do not want to move the data around more than is required. This means take the string returned from the interface and store it in a shift-register or something similar. All subsequent processing can then be done by selecting only that portion of the data that you need to deal with at the moment.
The second thing to remember is that boolean data types are I32's. I genearlly wait until the very last moment to convert strings to booleans.
If you could provide the format of the packets and what types of data is being passed, we may be able to suggest more s
pecific answers.
Trying to help,
Ben