Tweaks to getQueryStringValues to trim