Advice: copy your condition outside of 'if', cut it in pieces and see what each piece is doing.
Assign pieces to dummy vars?
Some pieces will behave as expected and others will not.
When you that elements are Ok, start to put pieces together and continue to check.
Abuse of debugger.
dummy1= i.contains(140001119);
dummy2= i.contains(140001106);
...
dummy3= i.contains(140001119) && i.contains(140001106);
or
dummy3= dummt1 && dummy2;