src/Binput.php
protected function process(string $value, bool $trim = true, bool $clean = true)
    {
        if ($trim) {
            $value = trim($value);
        }

        if ($clean) {
            $value = $this->security->clean($value);
        }

        return $value;
    }
protected function process(string $value, bool $trim = true, bool $clean = true)
    {
        if ($trim) {
            $value = trim($value);
        }

        if ($clean) {
            $value = $this->security->clean($value);
        }

        return $value;
    }
Process a specified value.

@param string $value
@param bool   $trim
@param bool   $clean

@return string