import re


def _single_line_filter(value: str) -> str:
    """Reduce a string to a single line with no insignificant padding."""
    regex = re.compile(r"\s{2,}")
    return regex.sub(" ", (value or "").replace("\n", " ")).strip()