Preprocess text arguments

This includes some changes to the integration test to
support preprocessing in them.

Bug: 65076
Change-Id: Id18d7bae08bfd1b1456757469e706bbb45f1445e