Clean up program text