code: public static String trimLeadingWhitespace(final String str) {
      if (!StringUtils.hasLength(str)) {
        return str;
      }
  
      final StringBuilder sb = new StringBuilder(str);
      while (sb.length() > 0 && Character.isWhitespace(sb.charAt(0))) {
        sb.deleteCharAt(0);
      }
      return sb.toString();
    }
docs: Trim leading whitespace from the given {@code String}.
  
  @param str the {@code String} to check
  @return the trimmed {@code String}
  @see java.lang.Character#isWhitespace