rename split_span_on_token to all_sub_spans_before_token