Crie matriz, preencha com espaços, converta em string e concat

var a = 'something' + Array(10).fill('\xa0').join('') + 'something'
Witty Wryneck