def guide_with_numbers(board_str: str) ->str:
    """Adds numbers and letters on the side of a string without them made out
    of a board.

    Parameters:
         - board_str: The string from the board object.

    Returns: The string with the numbers and letters.
    """
    board_without_whitespace_str = board_str.replace(' ', '').replace('\n', '')
    row_list = list('8' + board_without_whitespace_str)
    for i, char in enumerate(row_list):
        if (i + 1) % 10 == 0:
            row_num = 9 - (i + 1) // 10
            row_list[i:i] = [str(row_num) + '\n', str(row_num - 1)]
    row_str = (' '.join(row_list) + ' 1').replace('\n ', '\n')
    row_and_col_str = ('  a b c d e f g h  \n' + row_str +
        '\n  a b c d e f g h  ')
    return row_and_col_str
