Don't fail horribly on empty strings and newlines
Fix awful bug on already exhausted iterators