I need to replace leading and trailing space inside a string in Javascript with a regex, leaving all the others spaces inside the string.
const