If a variable is undefined, pass it as a string