code: function truncate(string) {
    if (string.length > SEG_LENGTH * 2 + 3) {
      return string.slice(0, SEG_LENGTH) + '...' + string.slice(-SEG_LENGTH);
    }
  
    return string;
  }
docs: Truncate 'string'
  @param {String} string
  @returns {String}