Testing if the message is a command before searching url