Search for string pattern inside of each element of the ArrayList<String>.