if you use a StringBuilder, use it at the beginning to create the expression instead of mixing StringBuilder and String concatenation