use nil as string finalization indicator
tiny optimization for tonumber