This method of the RegKeyEnumValue class determines if the registry value is a string.
public boolean isString();
Returns true if the registry value is a string, in which case the object is the RegKeyEnumValueString type; otherwise, returns false.
RegKeyEnumValueString