title: How can I break out of the if statement?
body: <p>My code's goal is to print out the title of the book if the title contains the given argument. 
  The tests are provided, and passes all of the tests except this given input: 
  The expected output is "Harry", however the actual output I am getting is "No hits found for search term: Harry". So the first if statement is not breaking for Harry. How can I fix this problem, been looking where I'm doing wrong but couldn't find it. 
  Here is my code: </p>
  
  <pre><code> public void execute(LibraryData data) {
          for (BookEntry book : data.getBookData()) {
              if (book.getTitle().toLowerCase().contains(givenArgument.toLowerCase())) {
                  System.out.println(book.getTitle());
                  break;
              } else {
                  System.out.println("No hits found for search term: " + givenArgument);
                  break;
              }
          }
  </code></pre>