Fixed automatic numbering string formatting for backward compatibility