removes brackets from location_id