Parse string into two variables?

How would I take the string: “8, 9” and make it two different variables(x and y), leaving out the comma and space?

there’s a catch tho as well. because this is coming from a huge database, some of the entries are off. some of the strings would be like “8,9” with no space or even “8, 9, 10” with three numbers.