|The Message text:
This email was created by [your name] who thought you would be interested in the following Article:
"Use wildcard characters * and ? to compare strings"
Using the Substring operation repeatedly as you do is apt to be very slow. Better would be to pass the starting indices and lengths of the two strings as parameters. That would require a manual loop to replace the String.Trim function, but it would avoid the need to create lots of new string...
CodeProject also contains hundreds of articles, free source code samples and applications to help in your day to day programming. Why not give it a try!