code: function truncateString(str, block_size) {
      block_size = block_size || 350;
  
      var blocks = [],
          current_pos;
  
      for (current_pos = 0; current_pos < str.length; current_pos = current_pos + block_size) {
          blocks.push(str.substr(current_pos, block_size));
      }
  
      return blocks;
  }
docs: Truncate a string into blocks of a set size