Value as a string from a void function

I have also tried the string function but when i put the name as as string in the function myMessage.add(name) into draw the console shows me that the variable name does not exist.