move substring search to correct dir.