Extract and compare text

Not clear for me @RACHEL_PAUL , Can you tell me what you what to achieve and share some sample input from the get text and what you want to get the string value?