Specific Character Counts

I have a csv file with names of varying lengths. Is there a calculation for where "space" can be added before and after the text, so that all records are the same character count, with the actual text being centered?
thanks,
Jimbo
thanks,
Jimbo