Evaluating and modifying thoughts and beliefs