Using string formatting to build string to eval