Modified the string condition of Validator.php simply