def split_text(string, elem_length):
    """
    Splits a string into substrings of length elem_length, with
    space padding.

    Arguments:
        string: a string to split
        elem_length: length of substrings to split into

    Returns:
        A list of strings of length elem_length
    """
    rem = len(string) % elem_length
    padded_string = string + b' ' * rem

    #jDouble braces used to create a literal brace, re matches exactly
    # elem_length of any char 
    
    return [padded_string[i : i + elem_length]
            for i in range(0, len(padded_string) - elem_length, elem_length)]