How to clear a text before a new text is placed in some spot

You are displaying the text then immediately overwriting it. Leave the text on the display, overwrite it immediately before displaying the new text.