allow minChars to be 0