[ripple/rippled] Simplify strHex: (#2668)

**Thank you** for your submission. It will be reviewed soon and submitted for processing in CI.