ENH: set label to empty string if [] is not found in the temaplate