Changing thought


How does one change a thought after processing the emotion of it. A thought keeps popping up and I want to have a different thought in place of it as the original thought doesn’t serve me.

I have read that one has to practice a new thought and if that is true, do I just keep saying the new practice thought over and over until I believe it, or is there a better way?