Substitute the old String.Format function for a new one that does not depend on regex