I investigated this, no amount of Trim will help with this issue. The lines of this kind ""@PART[*]:HAS[ @RESOURCE[*] ]"" just have to be without spaces, they are truncated at the first white-space. ModuleManager cannot do much about it as far as I can see.