Explicit string check in conditional