Converts a string concatenation into a formatted string.