Make a red box about the thickness of the S shape.
Make a blue box of same size.
Select both boxes.
With the Blend tool click on one anchor point on the red box and same anchor point on the blue box. Now you have a blend.
Make an S shaped path near by. Select both the blend and the new S path.
Go to: Object > Blend > Replace Spine