Handle zero-length strings.