Since this logic is almost exactly the same code as you have in the other branch of your `if` statement, you should probably extract it into a method.  DRY.

Also, since you've already split the line string into the tokens, this would be a good place to filter out and discard all of the tokens that you don't care about (in other words, keep only the ones that you made the constants for).  Or maybe you just haven't quite gotten to that yet?