If you want to be a bit more ...... (something)
This could work, but it is a bit expensive on nodes used:
[{"id":"72ae34f0.65d9d4","type":"function","z":"88de1ac2.8b8c38","name":"input","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":170,"y":1120,"wires":[["c63e0b7c.ec595"]]},{"id":"c63e0b7c.ec595","type":"switch","z":"88de1ac2.8b8c38","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":320,"y":1120,"wires":[["4cae4b0d.a33c2c"],["9e8080df.540138"],["45ea1d3.9a016e4"],["f51a055f.3f8f3"]]},{"id":"4cae4b0d.a33c2c","type":"change","z":"88de1ac2.8b8c38","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":1060,"wires":[["daf9c9fd.2fd488"]]},{"id":"9e8080df.540138","type":"change","z":"88de1ac2.8b8c38","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":1090,"wires":[["daf9c9fd.2fd488"]]},{"id":"45ea1d3.9a016e4","type":"change","z":"88de1ac2.8b8c38","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":1120,"wires":[["daf9c9fd.2fd488"]]},{"id":"f51a055f.3f8f3","type":"change","z":"88de1ac2.8b8c38","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":1150,"wires":[["daf9c9fd.2fd488"]]},{"id":"daf9c9fd.2fd488","type":"function","z":"88de1ac2.8b8c38","name":"output","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":720,"y":1110,"wires":[[]]}]
Just to say.