title: Java ResourceBundle leading whitespace in values
body: <p>I'm trying out the example given at <a href="http://docs.oracle.com/javase/tutorial/i18n/resbundle/propfile.html">Oracle's documentations</a>. The java file is <a href="http://docs.oracle.com/javase/tutorial/i18n/resbundle/examples/PropertiesDemo.java">here</a> as shown in that page. Now with this java file, I keep a <code>LabelsBundle.properties</code> file in the same directory. </p>
  
  <pre><code># This is the default LabelsBundle.properties file
  s1 = computer
  s2 = disk
  s3 = monitor
  s4 = keyboard
  </code></pre>
  
  <p>it seems that the trailing whitespace is not ignored while reading the values and the leading whitespaces are ignored.</p>
  
  <p>So if I want leading spaces to be there, what do I do?</p>
  
  <p>In other words, what do I need to do to read the value of <code>s1</code> as</p>
  
  <pre><code> computer
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>computer
  </code></pre>
  
  <p>?</p>