Change backspace handling to overwrite last character