Make substitutions in outputed message