for(int i = 0; i<ruleStr.length(); i++){
if(ruleStr.charAt(i) == "<"){
String temp = "";
while(ruleStr.charAt(i) != ">"){
temp += ruleStr.charAt(i);
i++
}
nt.addRule(new Rule(temp));
}
}
String[] splitSpace = ruleStr.split(" ");
for(String spaces : splitSpace){
if(!spaces.contains("<"))
nt.addRule(new Rule(spaces);
}