import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import com.google.common.base.Strings;
 
 
 public class PrintYangToProp {
                         fieldName = toLowerHyphen(m.getName().substring(2));
                     }
 
-                if(fieldName!= null && fieldName.length() >0 ) fieldName = fieldName.substring(0, 1).toLowerCase()
-                            + fieldName.substring(1);
+                if(Strings.isNullOrEmpty(fieldName)) fieldName = fieldName.substring(0, 1).toLowerCase()+ fieldName.substring(1);
+                            
 
                     // Is the return type a yang generated class?
                     if (isYangGenerated(returnType)) {
 
                                 if (retValue != null) {
                                     String propVal = retValue.getValue();
-                                    //LOG.debug("Setting property " + propName
-                                    //        + " to " + propVal);
+                                    
                                     props.setProperty(propName, propVal);
 
                                 }
 
                                 if (retValue != null) {
                                     String propVal = retValue.getValue();
-                                    //LOG.debug("Setting property " + propName
-                                    //        + " to " + propVal);
+                                    
                                     props.setProperty(propName, propVal);
 
                                 }
                                                 + TO_PROPERTIES_STRING, e);
                             }
                         } else if (isIpv4Prefix(returnType)) {
-                            //System.out.println("isIpv4Prefix");
+                            
                             // Save its value
                             try {
                                 String propName = propNamePfx + "." + fieldName;
                                 }
 
                                 if (retValue != null) {
-                                    String propVal = retValue.getValue().toString();
-                                    //LOG.debug("Setting property " + propName
-                                    //        + " to " + propVal);
+                                    String propVal = retValue.getValue();
+                                    
                                     props.setProperty(propName, propVal);
 
                                 }