public static function cutWords(string $string, int $length = 25, string $etc = '...') : string
{
return preg_replace_callback('~[^\\s]{' . $length . ',}~', function ($matches) use($length, $etc) {
return StringUtil::cut($matches[0], $length, $etc);
}, $string);
}