Can I use Rules Transform to remove text from a returned value?
You can try applying this Rules Data Transforms replace text patch which adds the ability to replace text. Flush cache after applying patch.

So now simply replace grams with nothing (empty).