Format sample.txt