Save entity variable as a string