simplify conditions on unQualifiedString