What you resist persists. If you simply replace negative thoughts with positive ones, negative thoughts will still arise and persist. There's no use pretending they do not exist. Learn to approach these thoughts with curiosity and calmly deal with negative thoughts in the process.