removed unused extract_last_token() and the required memrchr implementation