Update Format method

re-factored the format method to better use context instead of increasing reference count to the args object.