no need to use indices in strstr.cpp