title: Stream filter is not working for some reason
body: <p>My first post here, im very new with java (and with any programming) as you can see below :)</p>
  
  <p>I need to print out a word from list, but 
  for some reason my stream command cannot find parameter(String word) after using filter(), even when the word exist in list. (i tried sout() whole list without filter and found it in input).</p>
  
  <pre><code>private List&lt;String&gt; lines;
  
  public reviews(List&lt;String&gt; lines) { 
      this.lines = lines;
  }
  
  public void NumberOfWords(String theWord) {
  
      lines.stream()
              .map(lines -&gt; lines.split(" "))
              .map(words -&gt; Arrays.toString(words))
              .map(word -&gt; word.trim().toLowerCase())
              .filter(word -&gt; word.equals(theWord))   // Something wrong with this line?
              .forEach(word -&gt; System.out.println(word));
  
  }
  </code></pre>
  
  <p>Without stream filter() the output looks like this:</p>
  
  <p>[1, a, series, of, escapades, demonstrating, the, adage, that, what, is, good, for, the, goose, is, also, <strong>good</strong>, for, the, gander, ,, some, of, which, occasionally, amuses, but, none, of, which, amounts, to, much, of, a, story, .    ]
  [4, this, quiet, ,, introspective, and, entertaining, independent, is, worth, seeking, .    ]
  [1, even, fans, of, ismail, merchant, 's, work, ,, i, suspect, ,, would, have, a, hard, time, sitting, through, this, one, .    ]
  [3, a, positively <em>//etc........</em></p>
  
  <p>and with filter, lets say we would have parameter word: "<strong>good</strong>". it exist, but method doesnt print it.</p>