diff --git a/wmake/wmakePrintBuild b/wmake/wmakePrintBuild
index 3812bece3e9e2cfbf9bc26d4d8dc85ba52a81104..103e65cb07ee03d2b761f47570f36b96c2dbcd88 100755
--- a/wmake/wmakePrintBuild
+++ b/wmake/wmakePrintBuild
@@ -76,8 +76,8 @@ do
         ;;
     -pkg | -package)
         [ "$#" -ge 2 ] || usage "'$1' option requires an argument"
-        # mark empty as 'none', disallow '!' and spaces in string
-        package=$(echo "${2:-none}" | sed -e 's/!//g' -e 's/ //g')
+        # mark empty as 'none', disallow '!' in string
+        package=$(echo "${2:-none}" | sed -e 's/!//g')
         shift 2
         ;;
     -v | -version)