add backspace functionality in shell