@@ -0,0 +1,625 @@
+package us.kbase.common.utils;%0A%0A/**%0A * Miscellaneous methods for dealing with strings.%0A * %0A * @author gaprice@lbl.gov%0A *%0A */%0Apublic class StringUtils %7B%0A%09%0A%09/**%0A%09 * Checks that a string is neither null or empty.%0A%09 * @param s the string to check.%0A%09 * @param sname the name of the variable. This name will be used in the %0A%09 * thrown exception.%0A%09 * @throws IllegalArgumentException if the string is null or empty.%0A%09 */%0A%09public static void isNonEmptyString(final String s, final String sname) %7B%0A%09%09if (s == null %7C%7C s.isEmpty()) %7B%0A%09%09%09throw new IllegalArgumentException(sname + %0A%09%09%09%09%09%22 cannot be null or the empty string%22);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Add simple method for checking a string is non-empty