fix AbstractString in gen.jl