var s = "12-24"; console.log(s.replace('-','')); s= " AC VB "; console.log(s.replaceAll(' ','ꇵ'));