Changed telnet response check logic.