def split_by_space(inputs):
    """Split str by space.

    Args:
        inputs: str, e.g. "x  y z  ww e  "

    Return:
        list of strs, e.g. ["x", "y", "z", "ww", "e"]
    """
    ans = []
    now_str = ""
    length = len(inputs)
    for index in range(length):
        if inputs[index] == " ":
            if len(now_str) > 0:
                ans.append(now_str)
                now_str = ""
        else:
            now_str = now_str + inputs[index]
    if len(now_str) > 0:
        ans.append(now_str)
    return ans