Use StringBuilder for printing