def parse(s:str):
    """Get the next space separated word from a string. Return (word,remainder)"""
    s=s.strip()
    i=s.find(" ")
    if i<0:
        i=len(s)
    result=s[0:i].strip()
    remain=s[i+1:].strip()
    return (result,remain)