renaming labels into the form Nxxxx with numbers in ascending order