Why not use ``find_first_not_of``/`find_last_not_of` here?