Fixed output - should use substring rather than sequence