Clean up settings.txt