code: public static boolean isSingleWord(String value) {
          if (value == null) {
              return false;
          }
          value = value.trim();
          if (value.isEmpty()) {
              return false;
          }
          return !SINGLE_WORD_PATTERN.matcher(value).matches();
      }
docs: Determines if a String represents a single word. A single word is defined
  as a non-null string containing no word boundaries after trimming.
  
  @param value
  @return