You can simply check it like this:
my_string[:4*N] == ' ' * 4*N
You can also convert this check to lambda:
check = lambda my_string, N: my_string[:4*N] == ' ' * 4*N
and name it like:
check(' asdas', 2)
check(' asdas', 3)
Or if you want to hard install Nfor any reason ( N = 3):
check = lambda my_string: my_string[:12] == ' ' * 12
EDIT: If a symbol does not require a 4Nth + 1 symbol, you can include it in your lambda:
check_strict = lambda my_string, N: my_string[:4*N] == ' ' * 4*N and my_string[4*N + 1] != ' '
check_strict = lambda my_string: my_string[:12] == ' ' * 12 and my_string[13] != ' '