public static void Main()
str ="FW:RE:FW:RE:FW:RE:RE:RE:RE:FW:FW:FW:RE:RE:sdajhjhjkah:sjasklnlc";
while(str.Contains("FW:")||str.Contains("RE:"))
public static string getname(string str)
newstr = str.Substring(str.IndexOf("FW:")+3);
if(newstr.Contains("RE:"))
res = newstr.Substring(newstr.IndexOf("RE:")+3);