How do i take a string from a gui and show it in the gameworld c#

I have a quick question. I have this line of code setup to where u can input a string into a textfield and i want to take that string and input it over my characters head in the game world, once the hit the enter key.
This is the line of code where you can put the string and i have on clue what to do next.

stringToEdit = GUI.TextField(new Rect(Screen.width /60f,Screen.height / 1.05f, 300,20),stringToEdit,25);

Use a 3D Text object (you can create one by going to GameObject → Create Other → 3D Text), parent this to your player object and then set the text of the 3D text to the string from the GUI