if space < 0 or \
                     self._count_dollars_before_index(text, space) % 2 == 0: