title: String.endsWith() not working
body: <p>I have the following string</p>
  
  <pre><code>http://store.aqa.org.uk/qual/newgcse/pdf/AQA-4695-W-SP.PDF
  </code></pre>
  
  <p>I want it so if the user forgets to input the http:// or the .PDF, the program will automatically correct this. Therefore, I tried this code</p>
  
  <pre><code>if (!str.startsWith("http://")) { // correct forgetting to add 'http://'
          str = "http://" + str;
      }
      System.out.println(str);
      if (!str.endsWith("\\Q.PDF\\E")) {
          str = str + "\\Q.pdf\\E";
      }
  </code></pre>
  
  <p>However, even when I enter the correct string, <code>http://store.aqa.org.uk/qual/newgcse/pdf/AQA-4695-W-SP.PDF
  </code>the output is this.</p>
  
  <pre><code>http://store.aqa.org.uk/qual/newgcse/pdf/AQA-4695-W-SP.PDF\Q.pdf\E
  </code></pre>
  
  <p>Why? Why is <strong>another</strong> '.PDF' being added?</p>