// TODO: optimize static int levenSubstringIC_limited(S haystack, S needle, int max) { ret min(max, levenSubstringIC(haystack, needle)); }