const trimExceptUndefined = (valueIn) => { const valueOut = valueIn ? valueIn.trim() : valueIn; return valueOut; };