allows groups with spaces to be searched properly