Updated getQueryString to work with comma separated lists of values