Custom Post Type Rewrite Rule

My theme uses the following code which produces this slug:

'rewrite' => array('slug' => $this->safe_name . '-detail'),


I need to get rid of the ‘estate-detail’ part so I changed the rule to just:

'rewrite' => array('slug' => ' '),

This produces the slug as:

How do i get rid of the double forward slash?

many thanks

See if this helps:

thanks that actually helps !