replace Tag string by variable