formatFunction(originalValue) {
    return originalValue
      .toString()
      .slice(0, 50)
      .replace(/\n/g, '')
      .replace(/\s+/g, ' ');
  }
Format function to log it inside the console.

@param {*} originalValue
@return {string}