Make it work with frozen strings.