New method to check if a string contains another string.