completed main functionality, now replaces contests of files contaiting target strings in the 0th position