var str="Welcome-To-Hiox-Softwares-Pvt-Ltd";
document.write(str.replace("-"," "));
String.prototype.replaceAll = function(strTarget,strSubString){
var strText = this;
var intIndexOfMatch = strText.indexOf( strTarget );
while (intIndexOfMatch != -1){
strText = strText.replace( strTarget, strSubString )
intIndexOfMatch = strText.indexOf( strTarget );
}
return( strText );
}
strReplaceAll2 = str.replaceAll( "-", " " )
alert( strReplaceAll2 );