trace2: trim trailing whitespace in normal format error message