import re


def get_command_mappings(mapping_string):
    """Extract command maps from the command string.

    Parameters
    ----------
    mapping_string: str
        String containing mapping commands incased in {}.

    Return
    ------
    pulled_commands: list
        Commands stripped from mapping string.
    stripped_commands: list
        Commands stripped from mapping string with all whitespace removed.
    """
    pulled_commands = [x for x in re.findall('\{.*?\}', mapping_string)]
    stripped_commands = [x.replace(" ", "") for x in pulled_commands]

    return pulled_commands, stripped_commands