static function replace_and_save($oldFile, $search, $replace, $newFile = null)
    {
        $newFile = ($newFile == null) ? $oldFile : $newFile;
        $file = self::read_file_to_string($oldFile);
        $replacing = str_replace($search, $replace, $file);
        self::create_file($newFile, $replacing, $overwrite = true);
    }