Version: 1.0.01.0.11.1.01.1.11.2.01.2.11.3.01.3.11.3.21.4.01.4.1
var RE = /\s+/g
module.exports = function(str){
if (!str){
return ''
}
return str.trim().replace(RE, ' ')