string trim

by ian_smithz

JavaScript

var str = " \n this is a string \n \n \n"

console.log(str);
console.log(str.trim());