public function prepareTitle()
    {
        $title = $this->format;

        // replace the placeholders with actual data
        foreach (array_keys(self::$db) as $key) {
            $title = str_ireplace('%' . $key, $this->$key, $title);
        }

        return $title;
    }