title: C# Trim() vs replace()
body: <p>In a C# <code>string</code> if we want to replace <code>" "</code> in a string to <code>string.empty</code>, is it fine to use <code>stringValue.Trim()</code> or <code>stringValue.replace(" ", string.empty)</code>. Both serve the same purpose. But which one is better?</p>