When searching for the last number in the line I just reversed the line and scanned through it looking for the reversed strings for the number:
one -> eno
two -> owt
three -> eerht
etc
It makes the entire solution extremely simple, though a little verbose.