take care of strrchr