If it’s TCP, you should be able to add a blank stream profile to the VIP and then use the STREAM::expression and STREAM::enable commands in an iRule to replace the find string with the replace string:
when CLIENT_ACCEPTED {
STREAM::expression {find replace}
STREAM::enable
}
This is a bit easier than collecting the TCP data and performing the replacement in the CLIENT_DATA event.