Use string.Split on "\\" with stringsplitoption "RemoveEmptyEntries".
Then you can fetch last item of string array.
For e.g.
string[] s = "\\Sub1\\Sub2\\Sub3\\".Split(new char[] { '\\' }, StringSplitOptions.RemoveEmptyEntries);
Then your desired string would be in
s[s.Length - 1];