def _normalize_whitespace(s):
  """Replaces consecutive whitespace characters with a single space.

  Args:
    s: The string to normalize, or None to return an empty string.

  Returns:
    A normalized version of the given string.
  """
  return ' '.join((s or '').split())