Modify variable value in link

In a polystat dashboard I have a clickthrough with variable ${__cell_name}, however, the value is a combination of “valueA - valueB”. Both values separated by a dash. Can I split both values and only use one in the URL link? Some kind of String.split() function?

Thanks