added startsWith and endsWith to queryDictionary