Fixed string to number TypeError

This was causing an error because the formatting was looking for a number %02d