I would go for a regular expression to filter out the directory-names parts:
using System.Text.RegularExpressions;
Regex r = new Regex(@"^(?<Part1>[\d]{4}[-$][\d]{2}[-$][\d]{1})\s(?<Part2>[\w][\d]{3}[\w]{2})\.*$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
string example = "5555$44$5 A333XP Another Type of Document";
Match m = r.Match(example);
string part1 = m.Groups["Part1"];
string part2 = m.Groups["Part2"];
You can use
Expresso[
^] if you want to learn/build complex regular expressions.
Hope this helps.