def chunk_string(input_str, length):
    """
    Splits a string in to smaller chunks.

    NOTE: http://stackoverflow.com/questions/18854620/

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