protected function trimString($string, $count = 1000)
    {
        $string = trim($string);

        if ($count < mb_strlen($string)) {
            return mb_substr($string, 0, $count - 3).'...';
        }

        return $string;
    }
protected function trimString($string, $count = 1000)
    {
        $string = trim($string);

        if ($count < mb_strlen($string)) {
            return mb_substr($string, 0, $count - 3).'...';
        }

        return $string;
    }
protected function trimString ( $ string , $ count = 1000 ) { $ string = trim ( $ string ) ; if ( $ count < mb_strlen ( $ string ) ) { return mb_substr ( $ string , 0 , $ count - 3 ) . '...' ; } return $ string ; }
Trims string to specified number of chars.

@param string $string response content
@param int    $count  trim count

@return string
Trims string to specified number of chars .