Use local variable to form efficient equation string