Fixing issue with query string checking in lab3.