def is_snippet(t, sch, ech):
    """
    Returns if ``t`` is a snippet. A snippet must start with sch and end
    with ech.
    """
    if t and t[0] == sch and t[-1] == ech:
        return True
    else:
        return False
