make min_length and max_length arguments required for utils.substrings