def transform(strng: str) -> str:
    '\n    Transform the string to only lower alpha and numerics and spaces\n    Converts uppercase to lower case and strips all other characters except\n    space\n    '
    for char in (string.punctuation + string.whitespace[1:]):
        strng = strng.replace(char, '')
    return (strng.lower() + (' ' * (8 - (len(strng) % 8))))
Transform the string to only lower alpha and numerics and spaces
Converts uppercase to lower case and strips all other characters except
space
def transform(strng: str) -> str:
    '\n    Transform the string to only lower alpha and numerics and spaces\n    Converts uppercase to lower case and strips all other characters except\n    space\n    '
    for char in (string.punctuation + string.whitespace[1:]):
        strng = strng.replace(char, )
    return (strng.lower() + (' ' * (8 - (len(strng) % 8))))