you may look at the Melanie example
http://www.picbasic.co.uk/forum/showthread.php?t=573

Maybe something to play around.

As i said, i never waste my time 'round string parsing in a PIC. I keep my code space for something else than that.