Webserver Interface-Reading String as Command

First let me say: thank you for reading. My goal is to create a webpage to interface with the Yun. The webpage is served from the Yun's sd card and will have have HTML buttons that send commands in the form of strings. (I followed this tutorial to begin with: http://scuola.arduino.cc/courses/lessons/view/xzLgKRa)

[EDIT: SOLVED]Found someone doing something similar:
Here is the link:

Right now, a command can be read in and print back out, but my problem is that I'm unable to get the command recognized by my program. My when I enter '13ON' in the web, I get this result in the console:

Console is working
Command Read in as:
13ON

Below is my full code:

#include <Bridge.h>
#include <YunServer.h>
#include <YunClient.h>
#include <Console.h>
 
YunServer server;
String msg;
 
 
void setup () {
  Bridge.begin();
  server.listenOnLocalhost();
  server.begin();
  Console.begin();
  while (!Console){
    ; // wait for Console port to connect.
  }
  Console.println("Console is working");
  pinMode(13, OUTPUT); 
}
  
void loop () {
  //Read new message from the client
  YunClient client = server.accept(); //check new clients
   
  if(client) {
    String command = client.readStringUntil('/');  //read the incoming data
    if (command == "msg") {     
       msg = client.readStringUntil('/');             // read the incoming data
       
       //Debugging: (2 lines below)
       Console.println("Command read in as:");
       Console.print(msg);

        if(msg=="13ON\n") {  
          Console.println("PIN 13 HIGH");
          digitalWrite(13,HIGH);   
        }
        if(msg=="13OFF\n")  {
            Console.println("PIN 13 OFF");
           digitalWrite(13,LOW);  
        }
    }
    client.stop();
  } 
  

   
   delay(10);
}

I had it working with the console as seen in this sketch: but I'm not sure where I'm going wrong in this sketch.

#include <Console.h>

const int ledPin = 13; // the pin that the LED is attached to
char s;
String cmd="";

void setup() {
  // initialize serial communication:
  Bridge.begin();
  Console.begin();

  while (!Console){
    ; // wait for Console port to connect.
  }
  Console.println("You're connected to the console.  Type HELP for a list of commands.");
  // initialize the LED pin as an output:
  pinMode(ledPin, OUTPUT);
}

void loop() {
    while (Console.available() > 0) {
        s=(char)Console.read();
        if (s == '\n') {
            if(cmd=="HELP") {  Console.println("\nCommands:\nHELP\nLIGHTS ON      LIGHTS OFF\nLIGHTS ENTERTAIN      LIGHTS DAY      LIGHTS NIGHT\nTEMP UP      TEMP DOWN      NORMAL MODE      PASSIVE MODE\nDISPLAY\n");}
            
            if(cmd=="LIGHTS ON")  {   Console.println("Lights ON");}
            if(cmd=="LIGHTS OFF") {  Console.println("Lights OFF");}
            if(cmd=="LIGHTS ENTERTAIN") {  Console.println("Entertain Mode ON");}
            if(cmd=="LIGHTS DAY")  {   Console.println("Day Mode ON");}
            if(cmd=="LIGHTS NIGHT") {  Console.println("Night Mode ON");}
            
            if(cmd=="TEMP UP")  {   Console.println("Set Temperature Raised");}
            if(cmd=="TEMP DOWN") {  Console.println("Set Temperature Lowered");}
            if(cmd=="NORMAL MODE")  {   Console.println("Normal Mode Active");}
            if(cmd=="PASSIVE MODE") {  Console.println("Passive Mode Active");}
            if(cmd=="DISPLAY")  {   Console.println("Displaying Data");}

            if(cmd=="13ON") {  
               Console.println("PIN 13 HIGH");
               digitalWrite(13,HIGH);   
             }
            if(cmd=="13OFF")  {   
               Console.println("PIN 13 OFF");
               digitalWrite(13,LOW);  
            }
            
            if(cmd=="1") {  Console.println("1");}
            if(cmd=="2")  {   Console.println("2");}
            if(cmd=="3") {  Console.println("3");}
            if(cmd=="4")  {   Console.println("4");}
            cmd = "";  
        } else {  
            cmd +=s; 
        }
    }
}

HTML code:

<!DOCTYPE HTML>
<head>
<title>Yun Messages</title>
<script type="text/javascript" src="zepto.min.js"></script>	
</head>
<body>
<H1> Insert your message </H1> 

<form name="msgform" onSubmit="return sendMsg()">
<input type="text" name="msg">
<input type="submit" value="Yun it!" >
</form>
<script type="text/javascript">	
	
function sendMsg() {	
$.get('/arduino/msg/' + document.msgform.msg.value + '/',
	function(){
		alert("Success");
	}
);
return false;

}
</script>
</body>

I found someone doing something similar that helped me out. Here is the link: