Strip last char of select values if string and end by ";"