generate a string from input name used in figure export