const s = " padded "; console.log(`[${s.trimStart()}]`); console.log(`[${s.trimEnd()}]`);
trimStart and trimEnd