With this function replace how does it know which hive key the string is contained in.

I am not sure how to implement this in my environment to just change an ip address.

Thank you