FormatString refactored