code: public static Boolean toBoolean(String self) {
          final String trimmed = self.trim();
  
          if ("true".equalsIgnoreCase(trimmed) || "y".equalsIgnoreCase(trimmed) || "1".equals(trimmed)) {
              return Boolean.TRUE;
          } else {
              return Boolean.FALSE;
          }
      }
docs: Converts the given string into a Boolean object.
  If the trimmed string is "true", "y" or "1" (ignoring case)
  then the result is true otherwise it is false.
  
  @param self a String
  @return The Boolean value
  @since 1.0