public static Statement Create(int Index, string Str) { string cln = Regex.Replace(Str, @"\s+", "").ToUpper(); if (StmFech.IsThisYou(Str, cln)) { return(new StmFech(Index, Str)); } if (StmEnd.IsThisYou(Str, cln)) { return(new StmEnd(Index, Str)); } if (StmNewline.IsThisYou(Str, cln)) { return(new StmNewline(Index)); } return(new StmAtr(Index, Str)); }