Read from one character in string to another

Awesome! Thank you. I don't know anything about atoi, but wouldn't that make var = 1023; instead of 1023?