title: rtrim php equivalent in C#
body: <p>I would like to know how to accomplish the
  PHP</p>
  
  <pre><code>query = rtrim($query, '&amp; ');
  </code></pre>
  
  <p>in C# ASP .NET MVC</p>
  
  <p>I have tried <code>Strings.RTrim("string")</code> but it does not work.</p>
  
  <p>Have also tried <code>query = query.Trim(query, "&amp;");</code> but it gives me error.</p>
  
  <p>Also msdn provides code for rtrim in visual basic, which does not help.</p>
  
  <p>From looking at the code it seems like its' trimming the whitespace if found after &amp; character.</p>
  
  <p>Anyone know how to replicate the php command?
  Cheers</p>