public static function truncate($text, $length, $suffix = '...')
    {
        $strlen = mb_strlen($text, 'UTF-8');

        if ($strlen > $length) {
            $truncatedLength = $length - strlen($suffix);
            $text = mb_substr($text, 0, $truncatedLength, 'UTF-8') . $suffix;
        }

        return $text;
    }