Add support for curly brackets in ntuple
Fix sprintf bug in inequality tip