var string = " Hello World! " console.log(string); //" Hello World! " string2 = string.trim(); console.log(string2); //"Hello World!"