isInStringScope method added to enumerable