Current checks do not cover use cases where target string is found elsewhere in the original string. closes #13944