Trim values returned by 'getValOrHtml'