after maxLeng is reduced to one digit, if user tries to change that letter or detete it the window freezes
after maxLeng is reduced to one digit, if user tries to change that letter or detete it the window freezes