About Those Pesky Leading And Trailing Spaces

You could filter for dedicated fields (here: ARTIST) with trailing or leading spaces:
"$if($eql($len(%artist%),$len($trim(%artist%))),1,0)" IS "0"

Also, have a look at the FAQs: