Prevent excess backspace in popup_prompt