Since the space shuttle does not have an ablative heat shield, I am not sure what leaves the smoke trail, unless it is an artifact of the ionization of the atmosphere around the shuttle as it passes through at high speed.
Just did a Google search. The Shuttle does leave a greenish trail of ionized atmosphere behind it. The trail persists for several minutes.