concrete/src/Utility/Service/Validation/Strings.php
public function max($str, $length)
    {
        return $this->notempty($str) && strlen(trim($str)) <= $length;
    }
public function max($str, $length)
    {
        return $this->notempty($str) && strlen(trim($str)) <= $length;
    }
public function max ( $ str , $ length ) { return $ this -> notempty ( $ str ) && strlen ( trim ( $ str ) ) <= $ length ; }
Returns true on whether the passed is smaller or equal to the passed length.

@param string $str
@param int $length

@return bool
Returns true on whether the passed is smaller or equal to the passed length .