Create a new Widget Blueprint
Add an Editable Text control
Add this blueprint to the newly created widget blueprint:
Next, include the widget blueprint somewhere or just simply attach it to the viewport and test it out.
Note that Exchange Text is a string variable that contains your text that you want exchanged and Text Input is the textbox you added to the widget.
