code: def find_replace_string(obj, find, replace):
      
      try:
          strobj = str(obj)
          newStr =  string.replace(strobj, find, replace)
          if newStr == strobj:
              return obj
          else:
              return newStr
  
      except:
          line, filename, synerror = trace()
          raise ArcRestHelperError({
                      "function": "find_replace_string",
                      "line": line,
                      "filename":  filename,
                      "synerror": synerror,
                                      }
                                      )
      finally:
          pass
docs: Performs a string.replace() on the input object.
  
      Args:
          obj (object): The object to find/replace. It will be cast to ``str``.
          find (str): The string to search for.
          replace (str): The string to replace with.
      Returns:
          str: The replaced string.