wrote class for searching substring, and it works. also it takes substring ti search from argument. threadpool shuts down after all.