parse and add integers from a string