Removes unnecessary braces in a GString.