title: How to find similar strings in array and rename the strings?
body: <p>I want to find similar strings in an array/dictionary and rename them by adding a postfix to the string. For example suppose my array/dictionary contains strings like this:</p>
  
  <pre><code>1.Work
  2.Work
  3.Work
  4.Home
  5.Home
  6.Mobile
  7.Mobile 
  </code></pre>
  
  <p>etc. there could be any similar strings. Now I want to rename them like this:</p>
  
  <pre><code>1.Work(1)
  2.Work(2)
  3.Work(3)
  4.Home(1)
  5.Home(2)
  6.Mobile(1)
  7.Mobile(2)
  </code></pre>