tracing: Embed replace_filter_string() helper function