I think this is what you’re looking for..
string a = "Beneficiation Return";
string b = "Return Beneficiation";
string c = "Beneficiation From Return";
string d = "Return From Beneficiation";
bool isSame = !a.Except(b).Any() && !b.Except(a).Any();
The bool isSame will return true because strings a & b contain the same characters.
Compare a with c and it will return false
3
solved How to identify equivalence in a string? [closed]