title: Java loop not creating string correctly
body: <p>I'm using a for loop to append an "m" on to a string array, then passing each string to a DDE connection to download a stock quote.</p>
  
  <pre><code>    String[] symbols = {"AUDUSD", "EURUSD", "GBPUSD", "USDJPY"};
  
      String ibfxSym[] = new String[symbols.length];
  
      for(int i = 0; i&lt;symbols.length;i++) {
          ibfxSym[i] = symbols[i] + "m";
  
      }
              // start DDE
      for (int i = 0; i &lt; connections.length; i++) {
          try {
              connections[i].getQuote(ibfxSym[i]);
          } catch (Exception e) {
              System.out.println("error");
          }
  </code></pre>
  
  <p>That does not work, but if I pass in:</p>
  
  <pre><code>String[] ibfxSym = {"AUDUSDm", "EURUSDm", "GBPUSDm", "USDJPYm"};
  </code></pre>
  
  <p>instead of the loop it works just fine. I've tried printing each string as it is created in the loop, and they look the same. Is there some weird formatting the loop is adding that I can't see? I even tried:</p>
  
  <pre><code>ibfxSym[i] = String.valueOf(ibfxSym[i].trim());
  </code></pre>
  
  <p>to see if there was maybe a carriage return or something being appended that I couldn't see. Any ideas about what's going wrong here?
  Thanks.</p>