# Parse string into two variables?

**URL:** <https://forum.kirupa.com/t/parse-string-into-two-variables/229186>\
**Category:** Uncategorized\
**Created:** [June 14, 2007, 7:29pm UTC](https://forum.kirupa.com/t/parse-string-into-two-variables/229186 "2007-06-14T19:29:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbstanley](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@bigbstanley](https://forum.kirupa.com/u/bigbstanley)\
**Post date:** [June 14, 2007, 7:29pm UTC](https://forum.kirupa.com/t/parse-string-into-two-variables/229186/1 "2007-06-14T19:29:24Z")

</div>

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.
