fix extra space issue if no hashtags are present