support backspace in the middle