var person_name : string = " \n \t Ayyan ";

console.log("with whitwspaces :");

console.log(person_name);

//  removing whitespaces using trim function
var new_name :string = person_name.trim();

console.log("without  whitwspaces :");

console.log(new_name);

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: