Added character removal functionality.