trim() transform output to improve formatting, comment for docs