title: How to delete last char
body: <p>How to delete last character of String with <code>substring</code> or anything ?</p>
  
  <p>For example;</p>
  
  <pre><code>var
    query : String;
  begin
    query:= 'test=1&amp;line=5&amp;'; 
  end;
  </code></pre>
  
  <p><strong>Output must be :</strong></p>
  
  <pre><code>query -&gt; test1&amp;line=5
  </code></pre>