code: protected function validator($varInput)
      {
          if (is_array($varInput)) {
              return parent::validator($varInput);
          }
  
          return parent::validator(trim($varInput));
      }
docs: {@inheritDoc}