trim label when updating category