string search using OQL
Try this:
select {instance: s, content: s.toString()} from java.lang.String s where s.count>2 && s.toString().substring(0,2)=="GH"
under JDK 1.8.20 a more simple variant works:
select s from java.lang.String s where s.toString().startsWith("GH")
heap.objects('java.lang.String', false, "it.toString().startsWith('GH')")