replace dashes with spaces in state names when changing sortby