halve the number of memreadengines used in strstr, also more cleanup