How do you get rid of random words and names stuck in your head? Its annoying and bothersome sometimes
Practice non-attachment and observer-consciousness meditation. Observe everything non-judgmentally and let it pass like clouds going by. Judge nothing/no one. Even if you have thoughts of a purple elephant monster covered in peanut butter lol, just observe that thought/image in your mind non-judgmentally. The more you do this, the more you break up your mind's inclination to hold onto thoughts and attachments.