def _from_proc_output(output: bytes) -> str:
    """
    Convert proc output from bytes to str, and trim heading-
    and tailing-spaces
    :param output: output in bytes
    :return: output in str
    """
    return str(output, encoding='utf-8').strip(' \t\n')