Enhanced string intern API