Add $.format replace to frappe._
Refactor msgprints for new $.format