Adaptive builder for formatted strings