Remove == comparing strings

Using == to compare strings is unsafe and can result in unexpected
behaviour.