title: How to replaces white spaces from String loaded through properties
body: <p>I am loading property from file, the property contains path (Windows path) and I need to normalize it to create usable path. The problem is that I can't replace "\".</p>
  
  <p>Here is my test class:</p>
  
  <pre><code>public class PathUtil {
  
      public static String normalizeEscapeChars(String source) {
          String result = source;
  
          result = result.replace("\b", "/b");
          result = result.replace("\f", "/f");
          result = result.replace("\n", "/n");
          result = result.replace("\r", "/r");
          result = result.replace("\t", "/t");
          result = result.replace("\\", "/");
          result = result.replace("\"", "/\"");
          result = result.replace("\'", "/'");
          return result;
      }
  
      public static void main(String[] args) {
  
          try(FileInputStream input = new FileInputStream("C:\\Users\\Rakieta\\Desktop\\aaa.properties")) {
              Properties prop = new Properties();
              prop.load(input);
              System.out.println(PathUtil.normalizeEscapeChars(prop.getProperty("aaa")));
  
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Here property file:</p>
  
  <pre><code>aaa=Intermix\koza , intermix\trace
  </code></pre>
  
  <p>Actual output is : </p>
  
  <pre><code>Intermixkoza , intermix/trace
  </code></pre>
  
  <p>Needed output is :</p>
  
  <pre><code>Intermix/koza , intermix/trace
  </code></pre>
  
  <p>Any suggestions?</p>