Use lambdas for simple formatting functions.