I also figured out that you can use the substring method and set the text box that is being edited to this string, which will not allow the user to type any more in the text box than the max length of the substring.
I also figured out that you can use the substring method and set the text box that is being edited to this string, which will not allow the user to type any more in the text box than the max length of the substring.