def strToBlocks(toConvert, blockSize):
    """
        strToBlocks - Split a string into blocks, of max #blockSize

        @param toConvert <str> - String to convert
        @param blockSize <int> - Max number of items per block

        @return - List of the string split up into blocks.
    """
    ret = []
    i = 0
    lastI = 0
    toConvertLen = len(toConvert)
    if toConvertLen == 0:
        return ['']
    while i < toConvertLen:
        i += blockSize
        ret.append(toConvert[lastI:i])
        lastI = i
    return ret
