use >"%s" % var< instead of >"" + var<