Use `with` statement and string format