Improve grammaticallity of the sentence.
What they thought and what they believe affect students directly who consider the teacher as a hero.
What they think and what they believe affect students who consider the teacher as a hero directly.