strstr is a useful function for finding a substring.