You should probably check out
printf, and in particular the format specifier
%-20s which right justifies a string within a 20 character wide column. (If the string is longer than 20 characters the behaviour varies.)
--t. alex
"Nyahhh (munch, munch) What's up, Doc?" --Bugs Bunny