private static string CollapseWhitespace(string value) { if (value == null) return null; return value.Trim(); } }