How can I check a text block's text

Title. I want my script to go through a text block’s text and if it finds the specified keyword, print (“Complete!”). Can anyone help?