finish the strchr and strrchr.