Fix error in exception string formatting

In two cases we had "str1 %s" + "str2" % (aStr,)
but the string addition (concatenation) needs to happen first.