被过滤字符串为string

string.replace(/\s/g, '');