Replace numbers with replica class names.