title: Find the last character of a string that got whitespaces after it
body: <p>This might sound stupid but how can i find the last characters index in a string if the string  looks like this <code>"string with white-space after last character    "</code>, if it was consistent and just 1 it would be no problem but sometimes it might be 2 or 3 white-spaces</p>
  
  <p><strong>EDIT:</strong>
  I cant trim my current string to a new string, because the index of the last character wont be right. I want to keep the string as is</p>
  
  <p>This is why and what I got</p>
  
  <pre><code>string description = "Lorem Ipsum is simply dummy text of the printing and typesetting indu. Lorem Ipsum has ben indusry s tandard dummy text ever since the 1500s.";
  description = Regex.Replace(description, @"(?&gt;&lt;/?\w+)(?&gt;(?:[^&gt;'""]+|'[^']*'|""[^""]*"")*)&gt;", String.Empty);
  if (description.Count() &gt; 101)
  {
      description = description.Substring(0, 101);
      if (description.GetLast() != " ")
      {                    
          description = description.Substring(0, description.LastIndexOf(" ", 101)) + "...";
      }
      else
      {
          //here is should find the last character no mather how many whitespaces
          description = description.Substring(0, description.Length - 1) + "...";
      }
  }
  </code></pre>