diff --git a/bin/tools/RunFunctions b/bin/tools/RunFunctions
index 3632a62d761bef571488d35d3fd7ccd1d1083cf7..e37e46544395d0b296aa2079469946656e4e0d79 100644
--- a/bin/tools/RunFunctions
+++ b/bin/tools/RunFunctions
@@ -30,12 +30,12 @@
 
 getNumberOfProcessors()
 {
-    sed -ne 's/^numberOfSubdomains *\(.*\);/\1/p' system/decomposeParDict
+    sed -ne 's/^numberOfSubdomains\s*\(.*\);/\1/p' system/decomposeParDict
 }
 
 getApplication()
 {
-    sed -ne 's/^ *application *\([a-zA-Z]*\) *;.*$/\1/p' system/controlDict
+    sed -ne 's/^ *application\s*\([a-zA-Z]*\)\s*;.*$/\1/p' system/controlDict
 }
 
 runApplication()