better backspace detection