added the ability to specify the search term  when parsing through each line of a text file