Index: /xmlTools/trunk/posUpdate/ParametersParser.cs
===================================================================
--- /xmlTools/trunk/posUpdate/ParametersParser.cs	(revision 866)
+++ /xmlTools/trunk/posUpdate/ParametersParser.cs	(revision 867)
@@ -107,5 +107,5 @@
             foreach (string currentFile in filesToProcess)
             {
-                if (valPositions != null)
+                if (!String.IsNullOrEmpty(valPositions))
                 {
                     myTools.replaceAll(currentFile, value, valPositions);
@@ -130,5 +130,5 @@
             XmlPatch myPatch;
 
-            if (forceInFiles != "")
+            if (!String.IsNullOrEmpty(forceInFiles))
             {
                 myPatch = new XmlPatch(globalFileName, forceInFiles, globalNoBackups);
@@ -196,5 +196,5 @@
             List<String> filesToProccess = new List<String>();
 
-            if (filename == "") // No filename? Process everything xml file found.
+            if (String.IsNullOrEmpty(filename)) // No filename? Process everything xml file found.
             {
                 List<string> allXmlFiles = Util.getAllXmlFiles();
Index: /xmlTools/trunk/posUpdate/Program.cs
===================================================================
--- /xmlTools/trunk/posUpdate/Program.cs	(revision 866)
+++ /xmlTools/trunk/posUpdate/Program.cs	(revision 867)
@@ -11,5 +11,5 @@
     class Program
     {
-        public static readonly string toolsVersion = "0.8e";
+        public static readonly string toolsVersion = "0.8f";
         private static appErrors lastError = appErrors.NO_ERROR;
 
Index: /xmlTools/trunk/posUpdate/XmlPatch.cs
===================================================================
--- /xmlTools/trunk/posUpdate/XmlPatch.cs	(revision 866)
+++ /xmlTools/trunk/posUpdate/XmlPatch.cs	(revision 867)
@@ -96,5 +96,5 @@
             try
             {
-                if (forceFiles == null)
+                if (String.IsNullOrEmpty(forceFiles))
                 {
                     File = getPatchParameter(operation, "File");
@@ -115,5 +115,5 @@
             }
 
-            if (Element == "")
+            if (String.IsNullOrEmpty(Element))
             {
                 return false;
@@ -122,5 +122,5 @@
             //---------------------------------------------------Parse Operation command (end)
             List<String> filesToProcess = new List<String>();
-            if (File == "")
+            if (String.IsNullOrEmpty(File))
             {
                 filesToProcess = Util.getAllXmlFiles(); //no file specified, use all xml files found in same folder
@@ -188,5 +188,5 @@
             try
             {
-                if (forceFiles == null)
+                if (String.IsNullOrEmpty(forceFiles))
                 {
                     File = getPatchParameter(operation, "File");
@@ -207,5 +207,5 @@
             }
 
-            if (Element == "")
+            if (String.IsNullOrEmpty(Element))
             {
                 return false;
@@ -215,5 +215,5 @@
 
             List<String> filesToProcess = new List<String>();
-            if (File == "")
+            if (String.IsNullOrEmpty(File))
             {
                 filesToProcess = Util.getAllXmlFiles(); //no file specified, use all xml files found in same folder
@@ -272,5 +272,5 @@
             command = command.Replace("@COMMAND ", ""); //get only the command to process
 
-            if (command.Trim() == "")
+            if (String.IsNullOrEmpty(command.Trim()))
             {
                 Program.printAppError(Program.appErrors.PATCH_COMMAND_NOT_FOUND, "Error parsing commandOperation in Patch file: Command is empty.");
@@ -299,5 +299,5 @@
                     }
 
-                    if (paramType != "")
+                    if (!String.IsNullOrEmpty(paramType))
                     {
                         int startIdx = command.IndexOf(paramType) + paramType.Length;
Index: /xmlTools/trunk/posUpdate/XmlTools.cs
===================================================================
--- /xmlTools/trunk/posUpdate/XmlTools.cs	(revision 866)
+++ /xmlTools/trunk/posUpdate/XmlTools.cs	(revision 867)
@@ -41,5 +41,5 @@
             Util.getAllSpecificElements(xdoc.DocumentElement, ref myElements, this.posElement, this.posParentElement); //Returns all after "Oni" element
 
-            if (valuePositions != "")
+            if (!String.IsNullOrEmpty(valuePositions))
             {
                 checkValidSpecificPositions(valuePositions, value, myElements[0].InnerText);
@@ -50,9 +50,9 @@
                 if (element.Name == posElement)
                 {
-                    if (posParentElement != "" && element.ParentNode.Name != posParentElement)
+                    if (!String.IsNullOrEmpty(posParentElement) && element.ParentNode.Name != posParentElement)
                     {
                         continue;
                     }
-                    if (valuePositions == "") //replace every value for the new
+                    if (String.IsNullOrEmpty(valuePositions)) //replace every value for the new
                     {
                         element.InnerText = value;
@@ -91,5 +91,5 @@
                 if (element.Name == posElement)
                 {
-                    if (posParentElement != "" && element.ParentNode.Name != posParentElement)
+                    if (!String.IsNullOrEmpty(posParentElement) && element.ParentNode.Name != posParentElement)
                     {
                         continue;
@@ -141,5 +141,5 @@
                 if (element.Name == posElement)
                 {
-                    if (posParentElement != "" && element.ParentNode.Name != posParentElement)
+                    if (!String.IsNullOrEmpty(posParentElement) && element.ParentNode.Name != posParentElement)
                     {
                         continue;
@@ -185,5 +185,5 @@
                 if (element.Name == posElement)
                 {
-                    if (posParentElement != "" && element.ParentNode.Name != posParentElement)
+                    if (!String.IsNullOrEmpty(posParentElement) && element.ParentNode.Name != posParentElement)
                     {
                         continue;
@@ -230,5 +230,5 @@
             Util.getAllSpecificElements(xdoc.DocumentElement, ref myElements, this.posElement, this.posParentElement); //Returns all after "Oni" element
 
-            if (valuePositions == null)
+            if (String.IsNullOrEmpty(valuePositions))
             {
                 newXmlLastPos = new XmlNumberValue(newValue);
@@ -239,5 +239,5 @@
             }
 
-            if (valuePositions != null)
+            if (!String.IsNullOrEmpty(valuePositions))
             {
                 checkValidSpecificPositions(valuePositions, newValue, myElements[0].InnerText);
@@ -246,9 +246,9 @@
             foreach (XmlNode element in myElements)
             {
-                if (element.Name == this.posElement && (this.posParentElement == "" || this.posParentElement == element.ParentNode.Name))
+                if (element.Name == this.posElement && (String.IsNullOrEmpty(this.posParentElement) || this.posParentElement == element.ParentNode.Name))
                 {
                     XmlNumberValue xmlCurrValue = new XmlNumberValue(element.InnerText);
 
-                    if (xmlLastPos != null)
+                    if (xmlLastPos!=null)
                     {
                         newXmlLastPos = XmlNumberValue.sum(newXmlLastPos, XmlNumberValue.difference(xmlCurrValue, xmlLastPos));
@@ -258,5 +258,5 @@
                     else
                     { // first time just assign to last value
-                        if (valueRelation != null)
+                        if (!String.IsNullOrEmpty(valueRelation))
                         {
                             newXmlLastPos = XmlNumberValue.difference(newXmlLastPos, XmlNumberValue.difference(new XmlNumberValue(valueRelation), xmlCurrValue));
