Capitalize tags and remove brackets