removing illegal token