fix “string iterator not dereferencable” error in VC2010 debug mode

Crash in VC2010 debug mode   _DEBUG_ERROR("string iterator not dereferencable")  when _ITERATOR_DEBUG_LEVEL == 2