input: Write a python function to substitute blank spaces with a specified character in a string.
  assert replace_spaces("hello people", '@') == "hello@people"
  assert replace_spaces("python program language", '$') == "python$program$language"
  assert replace_spaces("blank space", '-') == "blank-space"
output: def replace_spaces(string, char):
      return string.replace(' ', char)