Eliminate heap allocations when parsing strings by using Span for memory-efficient operations.