Add text transformation template functions.