private function replace()
    {
        foreach ($this->stream as &$content) {
            foreach ($this->replacements as $field) {
                $content = Text::replace($content, $field['field'], $field['value']);
            }
        }
        return $this->stream;
    }