Hi,
I do not know what your problem is, because I cannot see the contents of global buf, but I do know how you should debug it.
insert a clock2.enabled = false just before you set the text labels. This will prevent the clock from firing again, and it allows you to look at the problem.
Then right-click with your mouse on a get global buf block, choose DoIt and see what you get. Then check if your segmenting of the text is ok. You can eventry it out by pasting the text in a text block and try to segment it until you get the right answer.
Another option would be to show the unsegmented text in the labels, this can also show you what is wrong.
Cheers, Ghica.