squeeze() 函数把字符串中的所有连续空白压缩为单独的空格。
squeeze()
n = String.squeeze(string)
var a = String.squeeze("Visit China!\r\n");
a = "Visit China "