You should be able to get a StackTrace object instead of a string by saying
var trace = new System.Diagnostics.StackTrace(exception);
You can then look at the frames yourself without relying on the framework’s formatting.
See also: StackTrace reference