移除字符串两侧空白字符

字符串
Both Server and Client
Both Mobile and PC

去除目标字符串第一个非空格字符以前和最后一个非空格字符以后的所有空格