Refine some string id.