EM: On duplicates use device index

For some platforms the PSU have the same address
but a different bus. To fix this, change the duplicate
names over to using index.

Tested: EM had no duplicate PSU numbers

Change-Id: Ibf9c7fe1b75a6420c858de194346433781d8f389
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/Utils.hpp b/include/Utils.hpp
index da3acce..58d4d42 100644
--- a/include/Utils.hpp
+++ b/include/Utils.hpp
@@ -124,8 +124,9 @@
     return false;
 }
 
-void templateCharReplace(
+std::optional<std::string> templateCharReplace(
     nlohmann::json::iterator& keyPair,
     const boost::container::flat_map<std::string, BasicVariantType>&
         foundDevice,
-    const size_t foundDeviceIdx);
+    const size_t foundDeviceIdx,
+    const std::optional<std::string>& replaceStr = std::nullopt);
\ No newline at end of file