Can I use Rules Transform to remove text from a returned value? I notice that Drupal Rules Data Transforms has the "trim text" action option. Is it possible to trim the returned value by a specific number of characters, or remove a specific word from the returned string?

E.g. I grab an entity field value with my first action, and I want to remove the word "grams" from the 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).