How to change text by typing in GUIText component?

There has to be an easier way to do this

#pragma strict
var nombre : String = "";

function Update()
{
	guiText.text = nombre;
	
	
	if(Input.GetKeyDown("a"))
	{
		nombre += "a";
	}
	
	if(Input.GetKeyDown("b"))
	{
		nombre += "b";
	}
	
	if(Input.GetKeyDown("c"))
	{
		nombre += "c";
	}
	
}

If there isn’t, how the hell would I delete?

Also I went with a guiText because I can anchor to middle so that the name is always centered. If I used GUI and edited a textfield the string wouldn’t stay centered.

GUI.Texfields already handle that for you (deleting and all that stuff):

http://docs.unity3d.com/Documentation/ScriptReference/GUI.TextField.html

Maybe combinig that with the GUIStyle can get you a nice effect similar to what you want(you can set the anchor and whatever).