diff --git a/build.sbt b/build.sbt
index d5f5dd0e..6e2d5209 100644
--- a/build.sbt
+++ b/build.sbt
@@ -16,7 +16,7 @@ val scalafixSettings = Seq(
 
 val sharedSettings = Seq(
   organization := "com.github.eikek",
-  scalaVersion := "2.13.8",
+  scalaVersion := "2.13.9",
   organizationName := "Eike K. & Contributors",
   licenses += ("AGPL-3.0-or-later", url(
     "https://spdx.org/licenses/AGPL-3.0-or-later.html"
diff --git a/modules/query/shared/src/main/scala/docspell/query/internal/StringUtil.scala b/modules/query/shared/src/main/scala/docspell/query/internal/StringUtil.scala
index 3488c721..7a012c0d 100644
--- a/modules/query/shared/src/main/scala/docspell/query/internal/StringUtil.scala
+++ b/modules/query/shared/src/main/scala/docspell/query/internal/StringUtil.scala
@@ -76,7 +76,7 @@ object StringUtil {
     /** String content without the delimiter */
     def undelimitedString(endP: P[Unit]): P[String] =
       escapedToken.backtrack
-        .orElse((!endP).with1 ~ P.anyChar)
+        .orElse(((!endP).with1 ~ P.anyChar).void)
         .rep
         .string
         .flatMap { str =>