I think that I would prefer if you did that in one step and you used "%%s" to protect the "%s" during the first string formatting.