tighten case-insensitive test to require full string match

fix bug usman found on my previous fix @symbolist @singingwolfboy @adampalay can >= 2 of you pls review