Found a better way to selected text and then extract that selected text into a variable