Add conditionals to format strings