import re


def findCommand(line):
    """ Utility function which reads 
        a line of user input and returns the embedded
        command, if any.
    """

    p = re.compile(r"^!(\w+)(\s(.*))?$")
    m = p.search(line)

    if m and m.group(1):
        return m.group(1),m.group(3)
    else: 
        return "",""