Fixed substr start cannot be 0