I'd personally do this with a ternary operator, since it's a pretty simple addition to a string, however it would leave one option as "" which is suboptimal, unless you'd make it strange and complicated. Alternatively add the + in the if and then add the % in any case. But I guess it's fine like this. Just my thoughts...