ciao,

se ho la stringa "where campo = 'test' AND "

come ottengo: "where capo = 'test'"

eliminando quindi gli ultimi 5 caratteri?