substring search task