In the OnEditBoxValueChanged event, the Value property remains the old one and has not been changed. The new string is passed as the value argument to OnEditBoxValueChanged. You can check value in the same event and change the entered text by rewriting the value text if necessary.