No. The only way to apply the proper padding is to write the entire output to a string and then pad that. Padding just the first character doesn't work.