Sorry about the late reply. Unfortunately, the output of msgs_toolbar isn't easy to get at. You'll have to edit the code to do it. Depending on what you're trying to do, you might be able to get away with using a global and some regex's. Hopefully in the future we'll be able to make this easier to change.
Adrian
Adrian