Save what you write in textarea as variable?

Hey geeks! Does anyone have a cleaver solution for saving whatever you type in a textarea (GUI.TextArea) as a variable when you click enter? Thanks in advance! //Tommy

I'd like to call myself clever for coming up with this solution, but I can't. :)

if( GUI.Button() ) {
     PlayerPrefs.SetString("ValueInTextArea", stringStringToStore);
     //PlayerPrefs.SetString("Key", "Value");
}

or: if you want to save it locally, but only when the user clicks a button, then I guess you could do something like:

var text : String;
private var internalText : String = "";

function OnGUI () {
     internalText = GUI.TextArea();

     if( GUI.Button() ) {
           text = internalText;
     }
}