whitespace stripping.

`str::slice_chars` was O(n) and #2 in the profile.