def check(s, ans):
    """
    This is a predicate function to check whether a string is in a given answer.
    :param s: str, the one need to be checked.
    :param ans: str, the given answer.
    :return: bool,
    """
    if s in ans:
        return True
    return False