public static UUID fromString(String string) throws IllegalArgumentException {
        if (string.length() != 32) {
            throw new IllegalArgumentException("Invalid length " + string.length() + ": " + string);
        }

        try {
            return new UUID(
                    Long.parseUnsignedLong(string.substring(0, 16), 16),
                    Long.parseUnsignedLong(string.substring(16), 16)
            );
        } catch (NumberFormatException e) {
            throw new IllegalArgumentException("Invalid uuid string: " + string, e);
        }

    }
Parses a UUID from an undashed string.

@param string the string
@return the uuid
helper/src/main/java/me/lucko/helper/utils/UndashedUuids.java