delete invalid character