protected function trimPath($prefix, $path) { return trim(trim($prefix, '/') . '/' . trim($path, '/'), '/'); }