Help Remove Hyphen (Dashes) if no value

Tags: #<Tag:0x00007f756fe09a98> #<Tag:0x00007f756fe099d0>

OK, Experimenting again, Here is my string can someone please tell me how to use dashes (-) except for when there is no value, Or did I do alright?

$if($eq($or(%originaldate%,%date%),1), $left($if2(%originaldate%,%date%),4)) - $replace($if2(%albumartist%,%artist%)-$title(%album%)-$if(%media%,$if($gt(%totaldiscs%,1),%totaldiscs%,)%media%-,) $if(%date%,$left(%date%,4)), ,_) [$if($eq($left(%_bitrate%,5),$right(%_bitrate%,5)),CBR $left(%_bitrate%,3),VBR$if(%_bits_per_sample%, %_bits_per_sample%,))] $if($gt(%_bits_per_sample%,17), [%_bits_per_sample%bit,) $if($gt(%_sample_rate%,44100), $div(%_sample_rate%,1000)kHz] ,)/