Refine regions inside strings