How do I clear printstring text?

Thats not how printstring works. If you force it that way it gets really ugly.
Create a UMG widget with a text field, set inputMode of to UI+Game and handle your number keys in the UMG to set the Text or clear it.