title: remove extra objects from string or array while hitting api
body: <p>I wanna pass whole array to api which expects string. My <code>&quot;education&quot;</code> expects any string like <code>&quot;education&quot; : &quot;ncert&quot;</code> but I wanna pass multiple elements to it. So to pass multiple elements I created an array and passed whole array and got this result from the api response:</p>
  <pre><code>&quot;education&quot; : &quot;[\&quot;ncert\&quot;, \&quot;hello\&quot;, \&quot;bye\&quot;, \&quot;cbse\&quot;, \&quot;hmmm\&quot;]&quot;
  </code></pre>
  <p>but is there any way to pass contents in this format?:</p>
  <pre><code>&quot;education&quot; : &quot;ncert, hello, bye, cbse, hmmm&quot;
  </code></pre>
  <p>I saw a code which uses <code>replace(target: &quot;[&quot;, replacement: &quot;&quot;)</code> but is there any way I can do this in swift?</p>