c program to replace the string with an array of strings : CODE:
 

    <div class="checkbox-animated-inline">
            <input id="brands" type="checkbox" ng-model="brands" ng-click="checkBrand(brands,'brands')">
            <label for="brands">
                <span class="check"></span>
                <span class="box" style="z-index:9 !important"></span>
                <strong>brands</strong>
            </label>
        </div> 

INPUT: array of brands=[Maytag,Panda,Samsung,Whirlpool];
REQUIRED OUTPUT:

 <div class="checkbox-animated-inline">
            <input id="Maytag" type="checkbox" ng-model="Maytag" ng-click="checkBrand(Maytag,'Maytag')">
            <label for="Maytag">
                <span class="check"></span>
                <span class="box" style="z-index:9 !important"></span>
                <strong>Maytag</strong>
            </label>
        </div>
        <div class="checkbox-animated-inline">
            <input id="Panda" type="checkbox" ng-model="Panda" ng-click="checkBrand(Panda,'Panda')">
            <label for="Panda">
                <span class="check"></span>
                <span class="box" style="z-index:9 !important"></span>
                <strong>Panda</strong>
            </label>
        </div>
        <div class="checkbox-animated-inline">
            <input id="Samsung" type="checkbox" ng-model="Samsung" ng-click="checkBrand(Samsung,'Samsung')">
            <label for="Samsung">
                <span class="check"></span>
                <span class="box" style="z-index:9 !important"></span>
                <strong>Samsung</strong>
            </label>
        </div>
        <div class="checkbox-animated-inline">
            <input id="Whirlpool" type="checkbox" ng-model="Whirlpool" ng-click="checkBrand(Whirlpool,'Whirlpool')">
            <label for="Whirlpool">
                <span class="check"></span>
                <span class="box" style="z-index:9 !important"></span>
                <strong>Whirlpool</strong>
            </label>
        </div>
**MY Question is**: How can i replace the brand with the list of brands and display the o/p using loop or by using a function. If there are any tools that can replace the word with list of elements from the array. Please its really urgent.