Can't get a substring and then trim a variable
<p>I am getting errors with the following:</p>

<pre><code>var a = id.Substring(0,8).TrimEnd("0").Length
</code></pre>

<p>What I want to do is to take my string called id. Trucate it to eight characters and then check the length after taking away trailing "0". </p>

<p>The error message is:</p>

<pre><code>Error   2   The best overloaded method match for 'string.TrimEnd(params char[])' has some invalid arguments
</code></pre>

<p>I can't see what I am doing wrong. Anyone have any ideas?</p>
