fix special character expansion when two or more are found