Tool: Include string.h and stdlib.h for strrchr and malloc/free