title: StartIndex cannot be less than zero. - Error when trying to change a string
body: <p>I have the following C# code:</p>
  
  <pre><code>ArticleContent = ds1.Tables[0].Rows[i]["ArticleContent"].ToString();
  
  if (ArticleContent.Length &gt; 260)
  {
     ArticleContent = ArticleContent.Remove(ArticleContent.IndexOf('.', 250)) + "...";
  }
  </code></pre>
  
  <p>The problem here is that I get this error message:</p>
  
  <blockquote>
    <p>StartIndex cannot be less than zero.</p>
  </blockquote>
  
  <p>Why and how can I fix it?</p>