Inject String.format method into context