code: protected function validator($varInput)
      {
          if (is_array($varInput)) {
              $value = array();
              foreach ($varInput as $key => $input) {
                  $value[$key] = parent::validator($input);
              }
  
              return $value;
          }
  
          return parent::validator(trim($varInput));
      }
docs: Trim the values and validate them.
  
  @param mixed $varInput The value to process.
  
  @return mixed The processed value