fixed formatting of logged strings