A good idea to use regular expressions for such parsing. Then you don't need to fiddle with the code too much when the syntax of the expression changes (for instance you add another module with "-" and another integer).
The code to parse your syntax would be:
string strRxPattern = "(?<int1>\\d*)-(?<int2>\\d*)";
string strToCheck = "1287103871-87450";
Regex rx = new Regex (strRxPattern);
if (rx.IsMatch (strToCheck))
{
Match mt = rx.Match (strToCheck);
Console.WriteLine (string.Format ("{0}: {1}", "int1", mt.Groups ["int1"].Value));
Console.WriteLine (string.Format ("{0}: {1}", "int2", mt.Groups ["int2"].Value));
}
So, you end up with nicely split strings...

Have a good time with regexping!
