Filters out valgrind log entries that don't contain the chosen strings.