convert number strings to int and zero-pad in text string