I have a list that is separated by commas and need to check to make sure that the last char is not a comma I tried this but does not remove the comma, it does however see that the last char is a comma, just not sure how to remove it? IF last char of colnames is comma THEN replace last char with empty in colnames END IF Thanks Rob