Fix several string format() errors.