Fixed rubocop's FavorSprintf warning.