A Characterization of Self-similar Symbolic Spaces