adding invalid case for tilda symbol