let rec eq_sub_strings s1 p1 s2 p2 len = if len > 0 then s1.[p1] = s2.[p2] && eq_sub_strings s1 (p1+1) s2 (p2+1) (len-1) else true