In reply to zz8318:
It is not really clear what your situation is. If you are using the UVM convert2string, it is virtual and you could override it. Or it might be easier to create another method that formats the string exactly the way you want it. As a last resort, you can use $sscanf to parse the string returned by convert2string and reformat it the way you want it.