Text gen string generation fix for all types of queries, stringliteral - doesnt work