fix minor bug: always return a string from function for padding numbers