title: Correct way of manipulating the url coming from App.config
body: <p>I have a URL ("<a href="http://localhost:2477/" rel="nofollow noreferrer">http://localhost:2477/</a>") on which I do get and post request. I have stored this URL in the app.config file of my project.</p>
  
  <p>In the code, depending on the function, I add the string "getValue?id={0}" or "postValue" to this URL. But I later ran into an issue when I changed the URL to "<a href="http://localhost:2477" rel="nofollow noreferrer">http://localhost:2477</a>" (no forward slash in the end) in the app.config. </p>
  
  <p>Took me some embarrassing amount of time to figure out this issue, which made me wonder if there is a good way to handle this case.</p>
  
  <p>Irrespective of the case when there is a forward slash or not in the URL, I want my code to change it to a proper URL.</p>