Refine inner regions of strings.