It’s very simple. One command takes care of the problem
Ctrl - W
(Hey - you did say...”Any help appreciated”. If you wanted GOOD help; You shoulda said so.)
You didn’t ¡¡¡ LOL