Code to replace string with only first match in C#
string ReplaceFirstOccurence(string wordToReplace, string replaceWith, string Input)
{
Regex r = new Regex(wordToReplace, RegexOptions.IgnoreCase);
return r.Replace(Input, replaceWith, 1);
}