refactor nb_space check
tabs is a check too
simplify tabs check