import re


def name_in_string(string: str, name: str) -> bool:
    """Checks if string contains name.

    Args:
        string (str): input searchable string
        name (str): input name

    Examples:
        >>> assert name_in_string("Across the rivers", "chris")
        >>> assert not name_in_string("Next to a lake", "chris")
        >>> assert not name_in_string("A crew that boards the ship", "chris")
        >>> assert name_in_string("thomas", "Thomas")
    """
    return bool(re.compile(f'(?i){".*".join(name)}').search(string))