Following the questions resolved at:
I was wondering if we can cover the new requirement:
Have two modes modulated by an inputbox which allows me to retain prefix from left to right
as is and another mode to retain prefix from right to left
I attached the current procedure and the expected result for mode 1 and 2.
Thank you for your help.