Moved query functions into util.strings