The watchdog timer was disable too late into the program.  So the program was reset every time the string started on the third character.  This was rectified by making the first thing I do be to disable the watchdog timer.