remove unwanted characters, like spaces from tag name