def history_parser(arg):
    """
    @param: arg is a string that contains the words seperated by spaces
    @return: Returns two strings. The first word removed from arg and everything after the space
    """
    v = -1
    try:
        v = arg.index(' ')
    except ValueError:
        return None, None
    first_word = arg[0:v]
    remain = arg[v + 1: len(arg)]
    return first_word, remain