implement strstr, note edge cases and how to reset and increment pointer