Change uses of index -> strchr, rindex -> strrchr