formatting of outputstring