去空格

Entity.Teacher = Regex.Replace(txt, @"s", "");

原文地址:https://www.cnblogs.com/shiningrise/p/6130915.html