title: Umbraco - Trim last five characters in current page url
body: <p>Im getting the url of the current page using <strong>@CurrentPage.Url</strong></p>
  
  <p>It returns <code>http://hostname/abcdefgh/</code></p>
  
  <p>I wanted to trim out the last 5 characters of the URL </p>
  
  <p>Req. URL <code>http://hostname/abcd</code> as the last five characters 'efgh/' is removed.</p>
  
  <p>I tried using <strong>@umbraco.library.TruncateString(testString,-5,"")</strong> property to trim, but was unsuccessful.  </p>
  
  <p>Im new to umbraco. Any help would be highly appreciated.</p>