Item Qty Price Total ------------------------------------------------ Notebook 12 45.50 546.00 Pen (box of 10) 3 120.00 360.00 Stapler 1 350.00 350.00 ------------------------------------------------ Grand total 1,256.00 == the same table with printf: it prints, it does not return a String == Notebook | 12| == truncation: %.Ns cuts, width pads == [Pen (b ] [ Pen (b]