widget: textbox: always terminate the string on input