In case anyone is wondering how to do it the "wrong" way, here it is:
textbox.text = "foo, bar and baz"
This will update the display without updating the internal state, which could be useful to mock the "initial" functionality. Just beware that it will introduce some hard to find inconsistencies.