Thank you so much. It took this novice awhile to find this simple solution. Here'sI created a short function I created with it.from Rubén's solution:
function SpaceBuilder(spaces){
var mySpaces = ' ';
for(var nnn=1;nnn<spaces;nnn++){
mySpaces = mySpaces + ' ';
}
return mySpaces.replace(/ /g,'\xa0');
}
Example:
var xxx = SpaceBuilder(5);
Ui.alert('Hello' + xxx + 'World')
var xxx = SpaceBuilder(5);
Ui.alert('Hello' + xxx + 'World')
Results:
Hello World