I need to divide a string into chunks of unequal sizes, that is ,if in a for loop i meets a certain condition then the chunk should be of specific length otherwise of different