typo fixed, thanks to bcode
use correct value for padding with spaces