def str_to_list(s):
    """
    Function to turn a string separated by space into list of words
    :param s: input string
    :return: a list of words
    """
    result = s.split()
    # check if the last word is ';' and remove it
    #if len(result) >= 1:
    #    if result[len(result) - 1] == ";":
    #        result.pop()
    return result