deal with string case and ignore logic if constant throws NameError