title: Trying to figure out how to add a string character to a string array using .Where
body: <p>Below is my string array.  I got this .Where code online and I found it really interesting and I tried modifying it to make it add a character instead of removing a character. However I keep getting the &quot;<strong>Method Name Expected error</strong> under the '<strong>indexremove</strong>' variable on the last line.
  Is there any solution to this problem? Or is my modification not able to work?</p>
  <pre><code>string[] TestArray = {&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;, &quot;e&quot;};
  
  int indexremove = 0;      // for removing the character in the 1st position; a.
  
  TestArray = TestArray.Where((source, index) =&gt; index != indexremove).ToArray(); //source, index points to the array's character collection, and index != indexremove causes A to be removed from the index of the array. Then it is converted to an array.
  
  foreach (string value in TestArray) {Console.WriteLine(value); //displays output of new array without &quot;a&quot; }
  
  string indextoadd = &quot;a&quot;; //trying to re-add the character back in to the array
  
  
  TestArray = TestArray.Where((source, index) =&gt; index + indexremove(indextoadd)).ToArray(); //Method Name Expected on indexremove
  </code></pre>