My comment refers to the original version of your comment where you suggested to use `resultSpan.SequenceEqual(new ReadOnlySpan<char>(**pStr, position**)).` This expression doesn't take into account the `stringToUnescape.Length`.  The latest suggested version `.SequenceEqual(stringToUnescape)` is probably sufficient.