? Do you think you could possibly format the %d to include the number of spaces instead of adding whitespace in the string? Maybe something like %10d?