def strip_action(action: str) -> str:
    """
    removes whitespace and changes all characters to lower case
    :param action: the name of the action taken on a position
    :return: the input string minus the above mentioned
    """

    action = action.replace(" ", "")
    action = action.casefold()

    return action