Eliminate the warning in SubstrSearch