title: I want to just use a simple for loop
body: <pre><code>for i in 0..&lt;self.etype.count{
      let item = self.etype[i]
      if (self.etype.contains("VALUE ACTIVITY")){
          print(self.etype.index(of: "VALUE ACTIVITY"))
      }
  
  etype = [string]()
  </code></pre>
  
  <p>My etype has contain 5 values as follows:</p>
  
  <blockquote>
    <p>["VALUE ACTIVITY", "BONUS ACTIVITY", ""JACKPOT EVENTS", "VALUE ACTIVITY", "JACKPOT EVENTS"]</p>
  </blockquote>
  
  <p>I want to just replace the array that contains "VALUE ACTIVITY" with "Value", and "JACKPOT EVENTS" with "Jackpot", and "BONUS ACTIVITY" with "Bonus" that's it.</p>
  
  <p><code>print(self.etype.index(of: "VALUE ACTIVITY"))</code> always gives me <code>1</code></p>