How to modify $SERVICEOUTPUT

I want to have a specific item on output like this :grin:

if i print only first 30 charaters there is a problem with some cases like this

commit charge percentage will not be shown in sms text.

so i want to cut off unnessary item in $SERVICEOUTPUT.