Does last_space indicate that the last action's text ended in a space or that the last action's text contained a space? Right now it would be true for something like "a b^". Would that be correct?