revert pr12.find-substrings