If statement with String comparison fails [duplicate] If statement with String comparison fails [duplicate] multithreading multithreading