string formatting fix

A bunch of lines had `("string %s", var)` instead of `("string %s" % var)`.