def chunk_string(input_str, length):
    """
    Splits a string in to smaller chunks.
    NOTE: http://stackoverflow.com/questions/18854620/

    :param input_str: The input string to chunk.
    :type input_str: str
    :param length: The length of each chunk.
    :type length: int
    :return: A list of the input string as smaller chunks.
    :rtype: list
    """
    return list((input_str[0 + i:length + i] for i in range(0, len(input_str), length)))