def str_to_list(string):
    """Turns a string input and converts it to a number list.
    >>> str_to_list("3, 4, 2   -24, 3 ")
    [3, 4, 2, -24, 3]
    """
    string = " ".join(string.replace(",", "").split())
    return [int(s) if s[0] != "-" else -1 * int(s[1:]) for s in string.split()]