using System; public static class ClipboardFusionHelper { public static string ProcessText(string text) { BFS.Clipboard.CopyText(out text); //!text.EndsWith(",") This will serve as a condition that if the "," already exist at the end of the text with TASK //then do not put another so you don't get something like this -> TASK123,, //Remove && !text.EndsWith(",") from below IF statement, if you don't want the check :) if (text.Contains("TASK") && !text.EndsWith(",")) { text += ","; } BFS.Clipboard.PasteText(text); return null; } }