improved formatting of multi-word output