User decription entity returning wrong indices



I tested this using the official rest console tool and my own account. I added the following description with 3 leading spaces
@sheikhazad or #app_dev

The rest api ignores the leading spaces in the description but the description url entity adds these spaces in indices. Is this expected behaviour?