There's a collection of techniques in the mental health field called Cognitive Behavioral Therapy that is about helping people identify and replace these negative stories. If folks are having a hard time applying these ideas themselves alone, look into this therapy as it can be good to have a therapist help you through using the technique.