public static function limitByWords($str, $wordCount = 10)
  {
    // Reads amount of words in paragraph
    $words = preg_split("/[\s]+/", $str, $wordCount + 1);

    // limit paragraph to $wordCount value
    $words = array_slice($words, 0, $wordCount);

    // Return the words back
    return join(' ', $words);
  }