checkIfTopic(string s) called in appropriate place