It's not thoughts that are your problem, it's the belief in those thoughts that can cause great suffering. Understand that those beliefs are subject to your own (or someone else's) personal biases and realize they are not true.