Class SubstringFunction