Check for unbalanced special characters in type question