title: Build URL string
body: <p>Trying to build a link with a variable and a string, but I always get a space in between them. How can I fix this?</p>
  
  <p>The <code>$sub</code> is a <code>SPWeb</code> object from sharepoint.</p>
  
  <pre class="lang-powershell prettyprint-override"><code>Write-Host $sub.Url "/default.aspx"
  </code></pre>
  
  <p>result:</p>
  
  <p><code>https://intra.mycompany/pages/sales /default.aspx</code></p>