Attributed string extension for creating attributed strings from a format string.