Attempting to update tabs into spaces; fixing issue with looping over generator and exhausting values