dot-check_plot_splitting_variables function

Checks and sanitizes splitting variables for plotting.