fix issue with XML element string values not trimmed.