Fix string comparison by trimming newline char

Fixed an issue where the API isFieldModeEnabled always returns true due
to newline character at the end of the string returned from executeCmd
API. Trimmed the newline before comparison to ensure correct string
comparison.

Change-Id: I1d4aab72d062a6bfd2a6e5c21643a749366bbed5
Signed-off-by: Rekha Aparna <vrekhaaparna@ibm.com>
diff --git a/vpd-manager/src/single_fab.cpp b/vpd-manager/src/single_fab.cpp
index d28f555..12197f2 100644
--- a/vpd-manager/src/single_fab.cpp
+++ b/vpd-manager/src/single_fab.cpp
@@ -124,6 +124,9 @@
         {
             commonUtility::toLower(l_cmdOutput[0]);
 
+            // Remove the new line character from the string.
+            l_cmdOutput[0].erase(l_cmdOutput[0].length() - 1);
+
             return l_cmdOutput[0] == "false" ? false : true;
         }
     }