title: Escape comma C# - CSV
body: <p>I've been following some tuts on creating CSV file, but obliviously teacher has some issues in one part of code. Actually there's method which is replacing strange characters and escaping comma because it's creating CSV.</p>
  
  <p>And its code looks like this:</p>
  
  <pre><code>private string PrepareInputForFile(string input)
  {
          input = input.Replace('ı', 'i')
              .Replace('ç', 'c')
              .Replace('ö', 'o')
              .Replace('ş', 's')
              .Replace('ü', 'u')
              .Replace('ğ', 'g')
              .Replace('İ', 'I')
              .Replace('Ç', 'C')
              .Replace('Ö', 'O')
              .Replace('Ş', 'S')
              .Replace('Ü', 'U')
              .Replace('Ğ', 'G')
              .Replace(""", """") // this line is issue
              .Trim();
          if (input.Contains(","))
          {
              input = """ + input + """; // and this line also!
          }
          return input;
  }
  </code></pre>
  
  <p>Actually there is error thrown which says:</p>
  
  <blockquote>
    <p>Represents text as sequence of UTF-16 code units. ; expected.</p>
  </blockquote>
  
  <p>So how could I fix this code, so it might really work (Escape comma etc).</p>