title: Trouble Removing Whitespace in URL (Android Studio)
body: <p>So I have a for loop that retrieves a room name to add to my baseurl, and so my URL will be this: </p>
  
  <pre><code>a = (baseUrl + roomName + "/users");
  </code></pre>
  
  <p>It works for all the rooms except one, which has a space, so I tried using this:</p>
  
  <pre><code>a.replaceAll("\\s+", "");
  </code></pre>
  
  <p>and other attemps but they return this</p>
  
  <pre><code>System.err﹕ java.io.FileNotFoundException: https://example.com:8443/conferenceRoom/First Floor/users
  
  System.err﹕ at http.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
  </code></pre>
  
  <p>Basically, I have a link like <a href="https://example.com:8443/conferenceRoom/First" rel="nofollow">https://example.com:8443/conferenceRoom/First</a> Floor/users</p>
  
  <p>and I want it to be <a href="https://example.com:8443/conferenceRoom/FirstFloor/users" rel="nofollow">https://example.com:8443/conferenceRoom/FirstFloor/users</a> so no space between 'first' and 'floor'</p>
  
  <p>(note I do use openURLConnection(a) ) when actually using the URL later but I don't think it has anything to pertain to my problem, just wanted to clarify that a is a string</p>