Function that checks if a string contains another string