Changed replace logic in ServiceAccessor to use String.Format()