in reply to conditional string formatting

printf "%4.4s", $var."  ";

Enjoy, Have FUN! H.Merijn