diff --git a/src/adql/db/STCS.java b/src/adql/db/STCS.java
index 2f1f4f3f20a1f3c63124736e18ee584714690cee..55f4bd4c6402b5dae12c34850e034f1a56f812e0 100644
--- a/src/adql/db/STCS.java
+++ b/src/adql/db/STCS.java
@@ -78,7 +78,7 @@ import adql.query.operand.function.geometry.RegionFunction;
  * </i></p>
  * 
  * @author Gr&eacute;gory Mantelet (ARI)
- * @version 1.3 (10/2014)
+ * @version 1.3 (12/2014)
  * @since 1.3
  */
 public final class STCS {
@@ -538,9 +538,9 @@ public final class STCS {
 		}
 
 		// The final regular expression must be reduced to a coordinate system and nothing else after:
-		finalRegExp.append(")\\s*");
+		finalRegExp.append(")\\s*$");
 
-		return (nbCoordSys > 0) ? finalRegExp.append(")$").toString() : defaultCoordSysRegExp;
+		return (nbCoordSys > 0) ? finalRegExp.toString() : defaultCoordSysRegExp;
 	}
 
 	/**