not considering validMaskExpression if it is an empty string
not necessary to check maskExpr for null