getname function

getname returns the name of a variable as character