Here is something you can give a shot at:
string s1 = "0011 0111 0111";
string s2 = "0111 0000 1010";
s1 = s1.Replace(" ", "");
s2 = s2.Replace(" ", "");
int i1 = Convert.ToInt32(s1, 2);
int i2 = Convert.ToInt32(s2, 2);
string result = Convert.ToString(i1 & i2, 2).PadLeft(12,'0');
I guess you are aware of every method used here except for the last Method
PadLeft(12,'0')
, here
PadLeft(Int32,char);