title: Swift: Replace String array at index
body: <p>I have the following String Array:</p>
  
  <pre><code>var stringArray:[String] = ["value1", "value2", "value3", "value4"]
  </code></pre>
  
  <p>how can I replace for example the third String with index 2 ("value 3") with another string?</p>