Exploring performance of various methods for checking substrings.