Simplify LanguageNameSearch code

A more efficient "startsWith" lookup.
And simplifying redundant modulo code.

Change-Id: I87ab0ff70d26fc058fc40bd20745b9b6effb7ddd