Cleanup text when saving programs