title: Two identical Strings are not equal(Not pointer/reference mistake)
body: <p>I read a line from a file:</p>
  
  <p><code>KatalogObrazków 1 32</code></p>
  
  <p>Means that I should look for data in:</p>
  
  <pre><code>C:\Users\NAME_OF_THE_USER/KatalogObrazków
  </code></pre>
  
  <p>and so I do it, but there is horrible thing going on. In <code>splitLine[0]</code> I have a word <code>"KatalogObrazków"</code> but then the computer says that <code>"KatalogObrazków".equals(splitLine[0])</code> is false, there is no whitespace arround <code>splitLine[0]</code> left after splitting line. Please have a look at the code below.</p>
  
  <pre><code>    BufferedReader br = new BufferedReader(new FileReader(path));
      String line;
      String[] splitLine;
      if ((line = br.readLine()) != null) {
          splitLine = line.split(" ");
          System.out.println(splitLine[0]);//1st line of output
          System.out.println("KatalogObrazków".equals(splitLine[0]));//these are not EQUAL!!!!!??? WHY?
          imageDirectoryPath = System.getProperty("user.home")+"/" + splitLine[0];
          System.out.println(new File(imageDirectoryPath).exists());
          delay = Integer.parseInt(splitLine[1]);
          fontSize = Integer.parseInt(splitLine[2]);
      }
      br.close();
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>KatalogObrazków
  false
  false
  C:\Users\R/KatalogObrazków
  </code></pre>
  
  <p>EDIT:</p>
  
  <pre><code>System.out.println();
              for (char c : splitLine[0].toCharArray())
                  System.out.print((int) c + " ");
              System.out.println();
              for (char c : "KatalogObrazków".toCharArray())
                  System.out.print((int) c + " ");
              System.out.println();
  </code></pre>
  
  <p>GOT ME:</p>
  
  <pre><code>65279 75 97 116 97 108 111 103 79 98 114 97 122 107 243 119 
  75 97 116 97 108 111 103 79 98 114 97 122 107 243 119 
  </code></pre>