C# string.join adding extra spaces code example
Example 1: c# join string array
var combined = String.Join(",", new String[]{"a","b"});
// a,b
Example 2: c# object list to joined string
using System.Linq
string.Join(",", people.Select(x => x.surname))