My plan is to assign the selected text to a string variable. But for now I\'d like to simply print it in real time. Is there a way to retrieve and assign it in real time?