Optimizations to exception throw, returning.

Make the functions more inliner-friendly and avoid some boxing.
Further optimize chomp.

This avoids a couple of string allocations.