string compare and shell routine