
Step 1:
Add the transform Message Component in the mule flow from component palette.

Step 2:
In this component we can write the Dataweave script to concatenate two strings as shown below. We can click on Preview button to see the resultant of Dataweave operation.
Note: ++ is the concatenate operator to concatenate two strings.

Dataweave Expression:
%dw2.0
outputapplication/json
varfirstName= “Sumit”
varlastName= “Aggarwal”
—
firstName++lastName
Output: “SumitAggarwal”
Reference Link: https://docs.mulesoft.com/mule-runtime/4.3/