String.Contents gets updated every time when the contents of the string gadget change. When you set up a notification on this attribute, you will hear about every keystroke.
If you try to set contents to something larger than String.MaxLen MUI will silently strip the additional characters.