When the pulses reach the middle, though the string becomes completely straight, the particles of the string there do not stop but have speed. Due to the speed, the pulses again emerge out after a few moments. So the energy of the two pulses at the middle is in the form of kinetic energy of the particles.