Tokenization happens first. The controls above are applied afterwards. The browser version mirrors the spaCy splits used in the Python example below.
Hover over a token to inspect is_stop, is_punct, lemma_, and its sentence number. New and York remain separate tokens. Deciding that together they name one place is a job for a later step, not for the tokenizer.