How to check if the text displayed in the page is one of the expected texts to display

This my work for you: Need to verify text contains particular text in a String