use /\S+/ to replace .split(' ')