Fixes bug in findElementsByName()

Calling .equals with charSequences is in general undefined, and produces the wrong result.
Updated to use String.contentEquals()