Parse integers from more complicated strings