My problem is that, when a user inputs "123" (without the quotes) but then realize that he may have inputed wrong. Instead of using the backspace key, the user uses the arrow keys to move back to "2", and then change it to "4".
The print out should be "143" however, the result is "123\3574".