Applying format in custom formatted message