Observation of Optical Pulse Shaping by the Self-Focusing Effects