how to trim leading spaces in html using css

CSS
var str = '/var/www/site/Brand new document.docx';

document.write( str.replace(/\s/g, '') );var str = "       Hello World!        ";
alert(str.trim());var str = "   GeeksforGeeks";

print(st);
<div style="white-space:pre-wrap"> <!-- New Line -->
   <!-- 2 space --> This is my text
</div>
Source

Also in CSS: