Similarity Transformation in One-Dimensional Reaction-Diffusion Systems: The Voting Model as An Example