code: def _rm_name_match(s1, s2):
    
    m_len = min(len(s1), len(s2))
    return s1[:m_len] == s2[:m_len]
docs: determine whether two sequence names from a repeatmasker alignment match.
  
    :return: True if they are the same string, or if one forms a substring of the
             other, else False