diff --git a/jodd-db/src/main/java/jodd/db/oom/sqlgen/chunks/MatchChunk.java b/jodd-db/src/main/java/jodd/db/oom/sqlgen/chunks/MatchChunk.java
index <HASH>..<HASH> 100644
--- a/jodd-db/src/main/java/jodd/db/oom/sqlgen/chunks/MatchChunk.java
+++ b/jodd-db/src/main/java/jodd/db/oom/sqlgen/chunks/MatchChunk.java
@@ -57,7 +57,7 @@ public class MatchChunk extends SqlChunk {
 		}
 		int eq = expression.indexOf('=');
 		if (eq == -1) {
-			throw new DbSqlBuilderException("Template syntax error, expected 'match' equality: {tableRef=objectRef}.");
+			throw new DbSqlBuilderException("Syntax error, expected 'match' equality: {tableRef=objectRef}.");
 		}
 		tableRef = expression.substring(0, eq).trim();
 		objectRef = expression.substring(eq + 1, lastNdx).trim();
@@ -97,6 +97,12 @@ public class MatchChunk extends SqlChunk {
 						continue;
 					}
 				}
+				// special case for strings
+				if (value instanceof CharSequence) {
+					if (StringUtil.isBlank((CharSequence) value)) {
+						continue;
+					}
+				}
 			}
 			if (count > 0) {
 				out.append(AND);
added special case for ignoring blank strings