def _build_print_str(*objects, sep: str, end: str) -> str:
    """
    Build the regular print string manually, removing (at most) one newline end for better formatting.
    """
    print_str = sep.join((str(e) for e in objects)) + end
    if print_str.endswith('\n'):
        print_str = print_str[:-1]
    return print_str