in reply to removing the last word

Can't you just append "/.."?