Fixed a few bugs mainly to do with string iteration.