trim() method removes the removes all whitespace from both ends of a string,
including tabs, spaces, no-break spaces, and line terminator characters.
Example of Trim() method in JS:
const extraSpaceString = ' Hi This is shyam from cyberncode.com, Please visit cyberncode.com for more awesome blogs. ';
const trimString = extraSpaceString.trim();