Textfield button PLZ HELP!!!

I tryed

function OnGUI () {

	stringToEdit = GUI.TextField (Rect (10, 10, 200, 20), stringToEdit, 25);
		if  (GUI.TextField == "times")
				Screen.showCursor = false;

But the button isnt hiding the cursor why not?
plz help and if theres a better way to right this could you tell
me im new to this
Thank - Michael

Line 5 should be:

if (stringToEdit == "times")