First of all:
Thank you for your post!!
Interesting approach. The part that is a challenge though is how do we re-number them once it has been numbered? That is where I got stuck.
The other goofy part is that you cannot count on the digits being the same number or in the same location for each line, so you can’t just go down the lines and update the numbers.