Consistently use validate_subarray to verify substring.