Simplify string formatting in posting of samples.