import re


def parse_message(message, command_str):
    """Parses the message into list of all the words in message that are seperated by whitespace\n 
    Parameters:
            message -- pass the message as-is
            command_str -- the command string that should be removed from the parsed message"""

    # Substitute the command_str with nothing (remove the command_str)
    message_without_command = re.sub(command_str, '', message.content)
    # Split the message into a list of all the words that are seperated by whitespaces.
    output = message_without_command.split(' ')
    # remove the first element in the list, As after subsitution the string will start with a whitespace, which on split will create a empty first element.
    output.pop(0)
    return output