let is_prefix u v = let m = String.length u and n = String.length v in m <= n && let rec loop i = i = m or u.[i] = v.[i] && loop (i + 1) in loop 0