Similarity analysis of a moving boundary hyperbolic problem