Added 'minLength' option