"use strict"; module.exports = function normalizeString(string) { if (string == null) { return null; } else { let trimmed = string.trim(); if (trimmed.length === 0) { return null; } else { return trimmed .replace(/\s+/g, " "); } } };