title: Append commas only if strings are not null or empty
body: <p>I am creating simple webform in C#. Here I am getting full address by concatenating which works well. But let's say if I don't have <code>address2</code>, <code>city</code>, etc, then I want to skip appending commas at end of each string (e.g. if <code>address1</code> is null or empty). </p>
  
  <pre><code>string address1 = "Address1";
  string address2 = "Address2";
  string city = "City";
  string country = "Country";
  string postalCode = "00000";
  
  string fullAddress = ? --&gt; address1 + ","+ address2 +","+ city  and so on
  </code></pre>