In case I have a string - \'I [dummy] want [dummy] My replacement array will be like [\'hey\', \'can\'] I want the resultant string to be - I hey want can