Start substr implementation