title: Remove spaces on new line, but keep the line
body: <p>I wish to remove spaces from lines that doesn't contain text, but not remove the line. Since a space character can be hard to identify, I will replace the space character with the "#" (hastag character) to showcase the example easier. The string looks something like this:</p>
  
  <pre class="lang-vb prettyprint-override"><code>"This is
  ########a long string
  with many lines
  #######
  and the above is empty
  ####this is empty
  #############
  #######hello"
  </code></pre>
  
  <p>I wish that the output would remove the spaces on the lines that only contains the space character. I am still using the "#" (hastag character) to showcase the spaces. The final output should look like this:</p>
  
  <pre class="lang-vb prettyprint-override"><code>"This is
  ########a long string
  with many lines
  
  and the above is empty
  ####this is empty
  
  #######hello"
  </code></pre>
  
  <p>Without the hashtag character acting as the space character, the expected output should look like this:</p>
  
  <pre class="lang-vb prettyprint-override"><code>"This is
          a long string
  with many lines
  
  and the above is empty
      this is empty
  
         hello"
  </code></pre>
  
  <p>So to fully clarify, I wish to remove space characters on a line that doesn't contain text, but not remove the line.</p>