private function clean(string $actual, string $peticion) {

        //Cargar en el buffer
        $this->buffer1->addAll(explode('/', substr($actual, 1, strlen($actual))));
        $this->buffer2->addAll(explode('/', substr($peticion, 1, strlen($peticion))));
            
        //limpiar y obtener parametros.
        $this->indexes->each(function ($number) {

            $this->mybuffer->add(
                substr($this->buffer1->get($number), 1, strlen($this->buffer1->get($number))), 
                $this->buffer2->get($number)
            );

            $this->buffer1->remove($number);
            $this->buffer2->remove($number);
        });

        //reconstruir 
        $this->actual = $this->buffer1->reducer(function ($acumulator, $current) {
           return $acumulator.'/'.$current;
        }, '');

        $this->peticion = $this->buffer2->reducer(function ($acumulator, $current) {
           return $acumulator.'/'.$current;
        }, '');

        //liberar buffers.
        $this->indexes->removeAll();
        $this->buffer1->removeAll();
        $this->buffer2->removeAll();
        
    }