Changed iterator back to string functionality for switching