Simplify code
Speedup string equality check