Converts an interpolated string into a formatted string.