prefix checking for isContainStar for precedence