In this case you might be able to use a regular expression, but it depends on the format of your string.
If the string always contains the pattern "... number <ticket number> ....", then you can use the code below.
using System.Text.RegularExpressions;
Regex regex = new Regex(@"number\s+(?<no>[\w\d]+)\s", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
string text = "The ticket has created with the number TS894858 use in your reference";
Match m = regex.Matches(text);
if (m.Success)
{
string ticketNumber = m.Groups["no"].Value;
}
else
{
}
There are other possibilities too, but without more sample data it is difficult to give a better solution.