best way to substring with variable length
<p>I want to substring a variable length string with leading spaces to 25 or less characters. i got it to work but looking for other ways?</p>

<pre><code>  ...  item.LineString.Trim().Substring(0, 
item.LineString.Trim().Length &gt; 25 ? 25 : item.LineString.Trim().Length));
</code></pre>
