JSFiddle - React, Tailwind, and code Playground by HemalathaThanigaivel August 12, 2019 JavaScript let str = ' '.trim(); console.log(str.trim()) console.log(str.length)