title: Remove space from query params in url dynamically
body: <p>I want to remove the space in query params in the request url in ruby</p>
  
  <p>Here is my sample request url:-</p>
  
  <pre><code>URL = 'www.test.com/a?q1=john&amp;q2=US&amp;q3= 92832832&amp;q4=test&amp;q5= foo'
  </code></pre>
  
  <p>I want to my output as below:-</p>
  
  <pre><code>URL = 'www.test.com/a?q1=john&amp;q2=US&amp;q3=92832832&amp;q4=test&amp;q5=foo'
  </code></pre>