Simplify format expression