Fix string formatting issues with braces