format optional arguments in square brakets