remove String.format

It seems there are two leftover calls to String.format() in this class. This caused the format to always execute regardless of the condition, which ended up showing in yourkit profiles as an expensive operation.