```python
def replace_blank(str1, char):
  """
  Replaces all blank spaces in a string with a given character.

  Args:
    str1: The input string.
    char: The character to use for replacement.

  Returns:
    The new string with spaces replaced.
  """
  return str1.replace(' ', char)
```