<human>:  replace in place string.
<bot>: Here is a Python function to replace in place string

import re

def replace_in_place(string, old, new):
  """Replace old with new in place.

  :param str string:
  :param str old:
  :param str new:
  :rtype: str
  :return:
  """
  string = string.replace(old, new)
  return string

# Enter the string
string = "Hello"

# Enter the old string
old = "Hello"

# Enter the new string
new = "World"

# Calling the function
print((replace_in_place(string, old, new)))

#Example Output
# World

#Remember to inspect code for bugs.