Remove unwanted space at the end of the tag class