Working fix for #72, makes it case-insensitive

Fixes issue 72 where the query API case-sensitivity will change the output.