System.Spanにしてもでてきおる
using static System.Memory<string>;
ってするとエラーは消えた