remove hardcoded constant to search for objectName and fix bug

@imlucas 

Fixing a bug I found in my tokenizer where it was not parsing the QueryObject because of a hard coded constant which should have been dynamic.