Formatting strings more intelligently.