Fix complexConstraint String pattern matching