You can use a combination of the methods mentioned earlier in a loop to check for multiple substrings.