`illegalChars = "` ! @ # $ % ^ & * ( ) + = ; : ' \" , < . > / ?  ".split( " " );`

No need to do in 2 steps.