1. added backspace feature and also public method
2. need to add backspace (count) or remove public method