How to remove a sequence of any numbers from the end of a string

Thanks for your suggestion. I think it is perfect for handling filenames. After looking at noEndNumbers and my code, I opened another thread and @jordan made a PR:

If it is merged, we can change strings more flexibly!