Solved it by checking the length and removing the BOM before doing the check.

Hopefully DAW are fixing these debugger issues in DF20

Thanks for the sanity check
Regards